From 05e75260d6952308d7c865ff67c0e3678b7ba935 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 26 Jan 2006 22:04:19 +0000 Subject: Get rid of missing prototype warnings --- libc/stdlib/system.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/stdlib/system.c') 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 #include #include +#include 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 -#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; -- cgit v1.2.3