diff options
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r-- | source3/lib/system.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 81e9a6679a..5ece0ca024 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -142,6 +142,18 @@ int sys_stat(char *fname,struct stat *sbuf) } /******************************************************************* +The wait() calls vary between systems +********************************************************************/ +int sys_waitpid(pid_t pid,int *status,int options) +{ +#ifdef USE_WAITPID + return waitpid(pid,status,options); +#else + return wait4(pid,status,options,NULL); +#endif +} + +/******************************************************************* don't forget lstat() ********************************************************************/ int sys_lstat(char *fname,struct stat *sbuf) |