#include "includes.h"
+RCSID("$Id$");
+
#ifdef HAVE_NEXT
#include <errno.h>
#include <sys/wait.h>
-#include "next-posix.h"
+#include "bsd-nextstep.h"
pid_t
posix_wait(int *status)
#undef wait /* Use NeXT's wait() function */
wait_pid = wait(&statusp);
- status = (int *) statusp.w_status;
+ if (status)
+ *status = (int) statusp.w_status;
return wait_pid;
}