diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | polyp/polyplib-context.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 8200383b..981c74c3 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,8 @@ AC_HEADER_STDC # POSIX AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \ netinet/in_systm.h netinet/ip.h netinet/tcp.h pwd.h sched.h \ - sys/capability.h sys/resource.h sys/select.h sys/socket.h syslog.h]) + sys/capability.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \ + syslog.h]) AC_CHECK_HEADERS([regex.h], [HAVE_REGEX=1], [HAVE_REGEX=0]) AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0]) diff --git a/polyp/polyplib-context.c b/polyp/polyplib-context.c index f85c5a41..1b9d7de6 100644 --- a/polyp/polyplib-context.c +++ b/polyp/polyplib-context.c @@ -31,9 +31,12 @@ #include <unistd.h> #include <sys/stat.h> #include <errno.h> -#include <sys/wait.h> #include <signal.h> +#ifdef HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif + #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif |