summaryrefslogtreecommitdiff
path: root/libc/stdlib/system.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
commit05e75260d6952308d7c865ff67c0e3678b7ba935 (patch)
treeac1a5d0ab7904783917b52ffa5489e8367743ff7 /libc/stdlib/system.c
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
Diffstat (limited to 'libc/stdlib/system.c')
-rw-r--r--libc/stdlib/system.c8
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;