* libc/stdlib/system.c (do_system): Eliminate explicit declaration of environ
when compiling under cygwin since it is already declared in unistd.h.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 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> | 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch> | ||||||
|  |  | ||||||
| 	* libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions | 	* libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions | ||||||
|   | |||||||
| @@ -60,7 +60,7 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, | |||||||
| #include <_syslist.h> | #include <_syslist.h> | ||||||
| #include <reent.h> | #include <reent.h> | ||||||
|  |  | ||||||
| #if defined (unix) || defined (__CYGWIN32__) | #if defined (unix) || defined (__CYGWIN__) | ||||||
| static int do_system (); | static int do_system (); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| @@ -106,7 +106,7 @@ system (s) | |||||||
|  |  | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if defined (unix) && !defined (__CYGWIN32__) | #if defined (unix) && !defined (__CYGWIN__) | ||||||
| static int | static int | ||||||
| do_system (ptr, s) | do_system (ptr, s) | ||||||
|      struct _reent *ptr; |      struct _reent *ptr; | ||||||
| @@ -139,7 +139,7 @@ do_system (ptr, s) | |||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if defined (__CYGWIN32__) | #if defined (__CYGWIN__) | ||||||
| static int | static int | ||||||
| do_system (ptr, s) | do_system (ptr, s) | ||||||
|      struct _reent *ptr; |      struct _reent *ptr; | ||||||
| @@ -147,7 +147,6 @@ do_system (ptr, s) | |||||||
| { | { | ||||||
|   char *argv[4]; |   char *argv[4]; | ||||||
|   int pid, status; |   int pid, status; | ||||||
|   extern char *environ[]; |  | ||||||
|  |  | ||||||
|   argv[0] = "sh"; |   argv[0] = "sh"; | ||||||
|   argv[1] = "-c"; |   argv[1] = "-c"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user