From 268aebb2e44d772e3cff25d40403a720f80abd09 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2006 21:21:51 +0000 Subject: [PATCH] Protect sys/wait.h with an ifdef. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@400 fefdeb5f-60dc-0310-8127-8f9354f1896f --- configure.ac | 3 ++- polyp/polyplib-context.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8200383ba..981c74c35 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 f85c5a410..1b9d7de6b 100644 --- a/polyp/polyplib-context.c +++ b/polyp/polyplib-context.c @@ -31,9 +31,12 @@ #include #include #include -#include #include +#ifdef HAVE_SYS_WAIT_H +#include +#endif + #ifdef HAVE_SYS_SOCKET_H #include #endif