]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/fork.c
Protoized, moved extern definitions to .h files, fixed related bugs.
[openldap] / servers / slapd / back-shell / fork.c
index aff0e5bbe446778c06ec249e3312b0d435c077b5..13f099b3316b96abccac2487d7208bb976bf5d65 100644 (file)
@@ -1,11 +1,17 @@
 /* fork.c - fork and exec a process, connecting stdin/out w/pipes */
 
+#include "portable.h"
+
 #include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+
+#include <ac/string.h>
+#include <ac/socket.h>
+#include <ac/unistd.h>
+
 #include "slap.h"
+#include "shell.h"
 
+int
 forkandexec(
     char       **args,
     FILE       **rfp,