9dbe579ad7
If HAVE_POSIX_SPAWN is defined, code is compiled in that requires environ to be declared. Solaris doesn't declare environ, so declare it (guarded by HAVE_ENVIRON_DECL) in the files in which it is used. Solaris 10 systems HAVE_POSIX_SPAWN, whereas previous versions do not.
15 lines
284 B
Text
15 lines
284 B
Text
$NetBSD: patch-ao,v 1.1 2004/10/13 17:14:36 gavan Exp $
|
|
|
|
--- lib/pipe-in.c.orig 2002-01-02 10:55:32.000000000 +0000
|
|
+++ lib/pipe-in.c
|
|
@@ -51,6 +51,10 @@
|
|
# define STDOUT_FILENO 1
|
|
#endif
|
|
|
|
+#ifndef HAVE_ENVIRON_DECL
|
|
+extern char **environ;
|
|
+#endif
|
|
+
|
|
#define _(str) gettext (str)
|
|
|
|
|