checkpoint. automake changes for wait().

This commit is contained in:
crs
2002-06-19 12:21:26 +00:00
parent 8a103ce63c
commit c4f1dbdae4
2 changed files with 18 additions and 3 deletions

View File

@@ -5,10 +5,25 @@
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <syslog.h>
#include <signal.h>
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#if !defined(WIFSIGNALED)
# define WIFSIGNALED(w) (((w) & 0xff) != 0x7f && ((w) & 0xff) != 0)
#endif
#if !defined(WIFEXITED)
# define WIFEXITED(w) (((w) & 0xff) == 0)
#endif
#if !defined(WTERMSIG)
# define WTERMSIG(w) ((w) & 0x7f)
#endif
#if !defined(WEXITSTATUS)
# define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#endif
//
// CUnixPlatform