when compiling under cygwin since it is already declared in unistd.h.
+Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
+ environ when compiling under cygwin since it is already declared in
+ unistd.h.
+
2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
#include <_syslist.h>
#include <reent.h>
-#if defined (unix) || defined (__CYGWIN32__)
+#if defined (unix) || defined (__CYGWIN__)
static int do_system ();
#endif
#endif
\f
-#if defined (unix) && !defined (__CYGWIN32__)
+#if defined (unix) && !defined (__CYGWIN__)
static int
do_system (ptr, s)
struct _reent *ptr;
}
#endif
-#if defined (__CYGWIN32__)
+#if defined (__CYGWIN__)
static int
do_system (ptr, s)
struct _reent *ptr;
{
char *argv[4];
int pid, status;
- extern char *environ[];
argv[0] = "sh";
argv[1] = "-c";