Only include sys/wait.h on platforms that have it.
1.1 --- a/configure.ac Thu Jan 08 15:08:08 2009 +0000
1.2 +++ b/configure.ac Thu Jan 08 15:18:01 2009 +0000
1.3 @@ -22,6 +22,7 @@
1.4 gl_EARLY
1.5 AM_PROG_CC_STDC
1.6 AC_HEADER_STDC
1.7 +AC_HEADER_SYS_WAIT
1.8 AC_CHECK_HEADERS([sys/mman.h])
1.9 gl_INIT
1.10 AC_CHECK_FUNCS([symlink chroot])
2.1 --- a/librazor/rpm.c Thu Jan 08 15:08:08 2009 +0000
2.2 +++ b/librazor/rpm.c Thu Jan 08 15:18:01 2009 +0000
2.3 @@ -26,7 +26,9 @@
2.4 #include <errno.h>
2.5 #include <sys/stat.h>
2.6 #include <sys/types.h>
2.7 +#if HAVE_SYS_WAIT_H
2.8 #include <sys/wait.h>
2.9 +#endif
2.10 #include <fcntl.h>
2.11 #include <dirent.h>
2.12 #include <unistd.h>