diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-09 19:23:24 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-09 19:24:37 -0500 |
commit | 86b8059f3484b9a67a5e5ae1a46fc5b1b3c0efae (patch) | |
tree | 8867a7e5d43e7b13343b3e82875fcd9934cba1e6 | |
parent | tests: get scripts working in sandbox.sh (diff) | |
download | sandbox-86b8059f3484b9a67a5e5ae1a46fc5b1b3c0efae.tar.gz sandbox-86b8059f3484b9a67a5e5ae1a46fc5b1b3c0efae.tar.bz2 sandbox-86b8059f3484b9a67a5e5ae1a46fc5b1b3c0efae.zip |
provide environ decl if system sucks and doesn't do it for usv1.3.6
URL: http://bugs.gentoo.org/258365
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reported-by: Dan Coats <admin@easyshellz.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | localdecls.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c30b454..9b23cde 100644 --- a/configure.ac +++ b/configure.ac @@ -73,11 +73,13 @@ AC_CHECK_HEADERS_ONCE([ \ ]) dnl Checks for typedefs, structures, and compiler characteristics. +dnl Do this after all headers have been checked. AC_C_CONST AC_TYPE_UID_T AC_TYPE_MODE_T AC_TYPE_SIZE_T AC_CHECK_TYPES([ptrdiff_t]) +AC_CHECK_DECLS_ONCE([environ]) dnl Checks for library functions. AC_FUNC_CHOWN diff --git a/localdecls.h b/localdecls.h index d061e5b..854ca6d 100644 --- a/localdecls.h +++ b/localdecls.h @@ -51,6 +51,10 @@ # define MAP_ANONYMOUS MAP_ANON #endif +#ifndef HAVE_DECL_ENVIRON +extern char **environ; +#endif + /* If the system is old and does not support *at funcs, then define * it ourself. Shouldn't matter based on how we use it. */ |