Only include sys/wait.h on platforms that have it.
authorJ. Ali Harlow <ali@juiblex.co.uk>
Thu, 8 Jan 2009 15:18:01 +0000 (15:18 +0000)
committerJ. Ali Harlow <ali@juiblex.co.uk>
Thu, 8 Jan 2009 15:18:01 +0000 (15:18 +0000)
configure.ac
librazor/rpm.c

index 2fea7b2..88b6bb2 100644 (file)
@@ -22,6 +22,7 @@ AC_PROG_CC
 gl_EARLY
 AM_PROG_CC_STDC
 AC_HEADER_STDC
+AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS([sys/mman.h])
 gl_INIT
 AC_CHECK_FUNCS([symlink chroot])
index d8cbb0e..211b584 100644 (file)
@@ -26,7 +26,9 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
+#endif
 #include <fcntl.h>
 #include <dirent.h>
 #include <unistd.h>