diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-25 17:39:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-25 17:39:06 +0000 |
commit | c9ca4412d7df43b9684e9477abf51afb86ad72ee (patch) | |
tree | 1dd5fc5c5c747612fadd944290f71c6100963c70 /newlib/libc/stdlib | |
parent | 0715614b52e1cebff3dbe68a2ec7328ab0e34e04 (diff) | |
download | newlib-c9ca4412d7df43b9684e9477abf51afb86ad72ee.zip newlib-c9ca4412d7df43b9684e9477abf51afb86ad72ee.tar.gz newlib-c9ca4412d7df43b9684e9477abf51afb86ad72ee.tar.bz2 |
* libc/stdlib/system.c (do_system): Eliminate explicit declaration of environ
when compiling under cygwin since it is already declared in unistd.h.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r-- | newlib/libc/stdlib/system.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 8a493d0..6a4a33c 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -60,7 +60,7 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <_syslist.h> #include <reent.h> -#if defined (unix) || defined (__CYGWIN32__) +#if defined (unix) || defined (__CYGWIN__) static int do_system (); #endif @@ -106,7 +106,7 @@ system (s) #endif -#if defined (unix) && !defined (__CYGWIN32__) +#if defined (unix) && !defined (__CYGWIN__) static int do_system (ptr, s) struct _reent *ptr; @@ -139,7 +139,7 @@ do_system (ptr, s) } #endif -#if defined (__CYGWIN32__) +#if defined (__CYGWIN__) static int do_system (ptr, s) struct _reent *ptr; @@ -147,7 +147,6 @@ do_system (ptr, s) { char *argv[4]; int pid, status; - extern char *environ[]; argv[0] = "sh"; argv[1] = "-c"; |