]> granicus.if.org Git - flex/commitdiff
check for sys/wait.h since we use wait(2)
authorWill Estes <wlestes@users.sourceforge.net>
Wed, 26 Mar 2003 21:43:48 +0000 (21:43 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Wed, 26 Mar 2003 21:43:48 +0000 (21:43 +0000)
configure.in
flexdef.h

index 1b51632405f2fb12cd2aa12b3b0f267f752205c2..63ce5728e9fecd8c3d57c0e5b258c5fe9cd0984e 100644 (file)
@@ -65,7 +65,8 @@ AC_CHECK_LIB(m, log)
 dnl checks for header files
 
 AC_HEADER_STDC
-AC_CHECK_HEADERS(unistd.h stdbool.h  netinet/in.h limits.h sys/params.h)
+AC_CHECK_HEADERS(unistd.h stdbool.h  netinet/in.h limits.h)
+AC_CHECK_HEADERS( sys/wait.h sys/params.h)
 AC_CHECK_HEADERS(cunistd)
 
 dnl checks for types
index 6c6fe0b482d8d33c88ff16af570d401f731d1a1a..d704cf16105dc5ef1372adcd9f460cc999e83602 100644 (file)
--- a/flexdef.h
+++ b/flexdef.h
@@ -60,6 +60,9 @@
 #ifdef HAVE_SYS_PARAMS_H
 #include <sys/params.h>
 #endif
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 #ifdef HAVE_STDBOOL_H
 #include <stdbool.h>
 #else