diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-05 21:21:51 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-05 21:21:51 +0000 |
commit | 268aebb2e44d772e3cff25d40403a720f80abd09 (patch) | |
tree | e1fa339e4b69a79a76624a040f0bc7e01e32d777 | |
parent | 8f3c364b4700c8e459269ff00dbe810503038639 (diff) |
Protect sys/wait.h with an ifdef.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@400 fefdeb5f-60dc-0310-8127-8f9354f1896f
-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 |