* configure.in: add getenv() declaration check.
* dln_find.c: add HAVE_DECL_GETENV test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa5db01644
commit
7776ca930b
@ -1,3 +1,8 @@
|
||||
Wed May 8 13:45:53 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* configure.in: sorts AC_CHECK_FUNCS()s as alphabetical order.
|
||||
|
@ -1470,6 +1470,8 @@ dnl Check whether we need to define sys_nerr locally
|
||||
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
|
||||
|
@ -67,7 +67,7 @@ char *dln_argv0;
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#if !defined(_WIN32) && !HAVE_DECL_GETENV
|
||||
char *getenv();
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user