#include "includes.h"
+RCSID("$Id$");
+
#ifdef HAVE_NEXT
#include <errno.h>
#include <sys/wait.h>
#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;
}