* 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:
@@ -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}"
|
||||
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user