Commit | Line | Data |
---|---|---|
1 | #ifndef authwait_h | |
2 | #define authwait_h | |
3 | ||
4 | /* | |
5 | ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for | |
6 | ** distribution information. | |
7 | */ | |
8 | ||
9 | #if HAVE_CONFIG_H | |
10 | #include "courier_auth_config.h" | |
11 | #endif | |
12 | ||
13 | ||
14 | #include <sys/types.h> | |
15 | #if HAVE_SYS_WAIT_H | |
16 | #include <sys/wait.h> | |
17 | #endif | |
18 | #ifndef WEXITSTATUS | |
19 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
20 | #endif | |
21 | #ifndef WIFEXITED | |
22 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
23 | #endif | |
24 | ||
25 | #endif |