$ make
cc -Wall -Werror -D_GNU_SOURCE -g -c -o reptyr.o reptyr.c
In file included from platform/linux/linux.h:36,
from platform/platform.h:26,
from reptyr.c:37:
/usr/include/sys/wait.h:104: error: expected identifier before numeric constant
$ sed -ne '100,108p' /usr/include/sys/wait.h
/* The following values are used by the `waitid' function. */
#if defined __USE_SVID || defined __USE_XOPEN
typedef enum
{
P_ALL, /* Wait for any child. */
P_PID, /* Wait for specified process. */
P_PGID /* Wait for members of process group. */
} idtype_t;
#endif
Build fails on CentOS 5 (gcc-4.1.2, glibc-2.5):