summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-01 23:37:12 +0000
committerAndrew Tridgell <tridge@samba.org>2004-11-01 23:37:12 +0000
commitefeab39f4c367ce84eaa7758a9a315c64ba25e44 (patch)
treed3f2b06aa222514398342c5e74ec0531bd8af459 /source/lib/replace.c
parent4bcf595f93ff2584e5c0d9f1b57c8ad496a9d612 (diff)
downloadsamba-efeab39f4c367ce84eaa7758a9a315c64ba25e44.tar.gz
samba-efeab39f4c367ce84eaa7758a9a315c64ba25e44.tar.xz
samba-efeab39f4c367ce84eaa7758a9a315c64ba25e44.zip
r3445: made the gtk tooks use minimal includes. This approximately halves the
total include lines in compiling C files in Samba (the .gch file is now 5M instead of 12M) This also gets rid of the silly gtk compile warning for non-gtk code
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index 28c60130f87..c2180a168ff 100644
--- a/source/lib/replace.c
+++ b/source/lib/replace.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "system/wait.h"
void replace_dummy(void);
void replace_dummy(void) {}
@@ -546,3 +547,12 @@ int get_time_zone(time_t t)
return i;
}
#endif
+
+int sys_waitpid(pid_t pid,int *status,int options)
+{
+#ifdef HAVE_WAITPID
+ return waitpid(pid,status,options);
+#else /* USE_WAITPID */
+ return wait4(pid, status, options, NULL);
+#endif /* USE_WAITPID */
+}