#79 sys/wait.h checks inverted in source

open
nobody
None
5
2010-09-20
2010-09-20
Mike Frysinger
No

a bunch of files do:
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif

the problem is that configure doesnt create this define. instead, the tcl.m4 file does:
AC_CHECK_HEADER(sys/wait.h, , [AC_DEFINE(NO_SYS_WAIT_H, 1, [Do we have <sys/wait.h>?])])

which means all of the source checks need to be inverted. quick fix:
sed -i 's:ifdef HAVE_SYS_WAIT_H:ifndef NO_SYS_WAIT_H:' *.c

Discussion