* 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:
kosaki 2013-05-12 08:40:24 +00:00
parent fa5db01644
commit 7776ca930b
3 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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

View File

@ -67,7 +67,7 @@ char *dln_argv0;
# include <unistd.h>
#endif
#ifndef _WIN32
#if !defined(_WIN32) && !HAVE_DECL_GETENV
char *getenv();
#endif