git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1f19538
)
Only include sys/wait.h on platforms that have it.
author
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 8 Jan 2009 15:18:01 +0000 (15:18 +0000)
committer
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 8 Jan 2009 15:18:01 +0000 (15:18 +0000)
configure.ac
patch
|
blob
|
history
librazor/rpm.c
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
2fea7b2
..
88b6bb2
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-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])
diff --git
a/librazor/rpm.c
b/librazor/rpm.c
index
d8cbb0e
..
211b584
100644
(file)
--- a/
librazor/rpm.c
+++ b/
librazor/rpm.c
@@
-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>