diff options
Diffstat (limited to 'libc/stdlib/system.c')
-rw-r--r-- | libc/stdlib/system.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index 89168cc73..5f85a0819 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -9,6 +9,7 @@ #include <signal.h> #include <unistd.h> #include <sys/wait.h> +#include <stdlib.h> libc_hidden_proto(_exit) libc_hidden_proto(wait4) @@ -18,12 +19,13 @@ libc_hidden_proto(vfork) /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include <sys/syscall.h> -#if ! defined __NR_vfork -#define vfork fork +#ifndef __NR_vfork +# define vfork fork libc_hidden_proto(fork) #endif -int __libc_system(char *command) +extern __typeof(system) __libc_system; +int __libc_system(const char *command) { int wait_val, pid; __sighandler_t save_quit, save_int, save_chld; |