* Disabled the use of environ on OS X.

git-svn-id: svn://svn.zoy.org/elk/trunk@199 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-26 15:32:16 +00:00
parent 73bac056b6
commit f34143b438
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,9 @@ case "${target_os}" in
ELK_LDFLAGS="${ELK_LDFLAGS} -no-undefined"
MATH_LIBS=""
;;
*darwin*)
AC_DEFINE(SYS_DARWIN, 1, Define if the system is Darwin)],
;;
esac
ELK_LIBS="${ELK_LIBS} ${MATH_LIBS}"

View File

@ -39,13 +39,13 @@
#ifndef WIN32
#ifdef ENVIRON_IN_UNISTD_H
#ifndef ENVIRON_IN_UNISTD_H
/* "extern" in front of the next declaration causes the Ultrix 4.2 linker
* to fail, but omitting it no longer works with modern C compilers: */
extern char **environ;
#endif
#ifdef HAVE_ENVIRON
#if defined(HAVE_ENVIRON) && !defined(SYS_DARWIN)
static Object P_Environ() {
Object ret, cell, str;
char *p, **ep;