nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.77k stars 216 forks source link

Build fails on CentOS 5 #67

Closed scop closed 8 years ago

scop commented 8 years ago

Build fails on CentOS 5 (gcc-4.1.2, glibc-2.5):

$ 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
nelhage commented 8 years ago

Can you confirm that #71 fixes this issue for you as well, and then I'll go ahead and merge.

scop commented 8 years ago

Yep, it does.