diff options
Diffstat (limited to 'newlib/libc/stdlib/system.c')
-rw-r--r-- | newlib/libc/stdlib/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 4584ae180..8a493d008 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -56,7 +56,9 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <errno.h> #include <stddef.h> #include <stdlib.h> +#include <unistd.h> #include <_syslist.h> +#include <reent.h> #if defined (unix) || defined (__CYGWIN32__) static int do_system (); @@ -112,7 +114,7 @@ do_system (ptr, s) { char *argv[4]; int pid, status; - extern char *environ[]; + extern char **environ; argv[0] = "sh"; argv[1] = "-c"; |