[前][次][番号順一覧][スレッド一覧]

ruby-changes:28605

From: kosaki <ko1@a...>
Date: Sun, 12 May 2013 17:40:36 +0900 (JST)
Subject: [ruby-changes:28605] kosaki:r40657 (trunk): * configure.in: add getenv() declaration check.

kosaki	2013-05-12 17:40:24 +0900 (Sun, 12 May 2013)

  New Revision: 40657

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40657

  Log:
    * configure.in: add getenv() declaration check.
    * dln_find.c: add HAVE_DECL_GETENV test.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/dln_find.c

Index: dln_find.c
===================================================================
--- dln_find.c	(revision 40656)
+++ dln_find.c	(revision 40657)
@@ -67,7 +67,7 @@ char *dln_argv0; https://github.com/ruby/ruby/blob/trunk/dln_find.c#L67
 # include <unistd.h>
 #endif
 
-#ifndef _WIN32
+#if !defined(_WIN32) && !HAVE_DECL_GETENV
 char *getenv();
 #endif
 
Index: configure.in
===================================================================
--- configure.in	(revision 40656)
+++ configure.in	(revision 40657)
@@ -1470,6 +1470,8 @@ dnl Check whether we need to define sys_ https://github.com/ruby/ruby/blob/trunk/configure.in#L1470
 AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
 @%:@include <errno.h>])
 
+AC_CHECK_DECLS([getenv])
+
 AS_CASE(["$target_cpu"],
 [alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"],
 		[*::yes],  # gcc
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40656)
+++ ChangeLog	(revision 40657)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed May  8 13:45:53 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: add getenv() declaration check.
+	* dln_find.c: add HAVE_DECL_GETENV test.
+
 Sun May 12 15:33:18 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: sorts AC_CHECK_FUNCS()s as alphabetical order.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]