summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--libc/stdlib/system.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d5b56cc66..15d2461d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-DIRS = headers error getent malloc-simple misc net regexp rpc stdio2 \
- string sysdeps termios time
+DIRS = headers error getent malloc-simple misc net regexp stdio2 \
+ string sysdeps termios time #rpc
all: libc.a
@@ -54,5 +54,5 @@ dummy:
clean:
-rm -f `find -name \*.[oa]` `find -name \*~` core
- -rm -f include/asm include/net include/linux
+ -rm -rf include/asm include/net include/linux
diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c
index 74ac27b64..6c8a42dee 100644
--- a/libc/stdlib/system.c
+++ b/libc/stdlib/system.c
@@ -1,7 +1,8 @@
-
+#include <stdio.h>
#include <stddef.h>
#include <signal.h>
#include <unistd.h>
+#include <sys/wait.h>
int
system(command)