From dfc3de131c349a8677d4d4b885dc27f2b2f73567 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 1 Aug 2008 16:21:16 +0200 Subject: Make ngIRCd compile and run on NeXTSTEP 3.3 and OPENSTEP 4.2 by Steven D. Blackford : "I wanted to let you know that I've done a quick port of ngircd-0.12.0 for NEXTSTEP3.3/OPENSTEP4.2. There wasn't a lot of changes required to get it to compile clean, but I did make the necessary changes so that I didn't have to use -posix flag. The NeXT has a pretty buggy POSIX implementation so I always try to work around it. :-) Anway, here's the changes required to get it to compile." --- src/portab/waitpid.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/portab/waitpid.c (limited to 'src/portab/waitpid.c') diff --git a/src/portab/waitpid.c b/src/portab/waitpid.c new file mode 100644 index 00000000..0c169601 --- /dev/null +++ b/src/portab/waitpid.c @@ -0,0 +1,31 @@ +/* + * ngIRCd -- The Next Generation IRC Daemon + * + * waitpid() implementation. Public domain. + * Written by Steven D. Blackford for the NeXT system. + * + */ + +#include "portab.h" + +#include "imp.h" +#include +#include +#include + +#include "exp.h" + +#ifndef HAVE_WAITPID + +GLOBAL int +waitpid(pid, stat_loc, options) +int pid, *stat_loc, options; +{ + for (;;) { + int wpid = wait(stat_loc); + if (wpid == pid || wpid == -1) + return wpid; + } +} + +#endif -- cgit 1.4.1