File svc_build.patch of Package svc

Index: lockf.c
===================================================================
--- lockf.c.orig
+++ lockf.c
@@ -1,5 +1,6 @@
 #include <fcntl.h>
 #include <unistd.h>
+#include <stdlib.h>
 
 extern void dolock(int fd);
 
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -1,12 +1,12 @@
 # normally you'll call this with make args...
-# make common/lock.c
-# make unix/ttywrap.c
-# make common/lock.c
+# make lock.c
+# make ttywrap.c
+# make lock.c
 all: sleep-svc wait-trigger pull-trigger ttywrap lockf noroot chdirhome
-sleep-svc: unix/sleep-svc.c common/lock.c
-wait-trigger: unix/wait-trigger.c
-pull-trigger: unix/pull-trigger.c
-ttywrap: unix/ttywrap.c
-lockf: unix/lockf.c common/lock.c
+sleep-svc: sleep-svc.c lock.c
+wait-trigger: wait-trigger.c
+pull-trigger: pull-trigger.c
+ttywrap: ttywrap.c
+lockf: lockf.c lock.c
 noroot: 
 chdirhome: 
Index: pull-trigger.c
===================================================================
--- pull-trigger.c.orig
+++ pull-trigger.c
@@ -1,6 +1,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include <fcntl.h>
 
 #ifndef O_NONBLOCK
Index: wait-trigger.c
===================================================================
--- wait-trigger.c.orig
+++ wait-trigger.c
@@ -3,6 +3,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <stdlib.h>
 
 #ifndef O_NONBLOCK
 #define O_NONBLOCK O_NDELAY
openSUSE Build Service is sponsored by