12 |
GNU General Public License for more details. */ |
GNU General Public License for more details. */ |
13 |
|
|
14 |
#ifdef HAVE_SYS_WAIT_H |
#ifdef HAVE_SYS_WAIT_H |
15 |
#include <sys/types.h> /* For pid_t. */ |
# include <sys/types.h> /* For pid_t. */ |
16 |
#ifdef HAVE_SYS_RESOURCE_H |
# ifdef HAVE_SYS_RESOURCE_H |
17 |
#include <sys/resource.h> /* for rusage */ |
# include "xtime.h" /* FreeBSD 4.11, at least, needs struct timeval |
18 |
#endif |
* defined before including <sys/resource.h> |
19 |
#include <sys/wait.h> |
*/ |
20 |
|
# include <sys/resource.h> /* for rusage */ |
21 |
|
# endif |
22 |
|
# include <sys/wait.h> |
23 |
#endif |
#endif |
24 |
|
|
25 |
#ifndef WIFSTOPPED |
#ifndef WIFSTOPPED |
26 |
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f) |
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f) |
27 |
#endif |
#endif |