summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorben <ben>2005-11-23 14:59:44 +0000
committerben <ben>2005-11-23 14:59:44 +0000
commite295bc982584f5d0ea8c614a6408e93f4de92d84 (patch)
treeba0a66d7444f35567afbeff07bfbd1e560421394 /pkgtools/pkg_install
parentc722df1378d3d797d6908a3305c7b2ea5733a56e (diff)
downloadpkgsrc-e295bc982584f5d0ea8c614a6408e93f4de92d84.tar.gz
Conditionally include header files, and include nbcompat.h
Addresses PR#32149
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/pexec.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/files/lib/pexec.c b/pkgtools/pkg_install/files/lib/pexec.c
index 6277f5b2604..b5b3019ac65 100644
--- a/pkgtools/pkg_install/files/lib/pexec.c
+++ b/pkgtools/pkg_install/files/lib/pexec.c
@@ -1,9 +1,25 @@
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
+#endif
+#if HAVE_ERR_H
#include <err.h>
+#endif
+#if HAVE_ERRNO_H
#include <errno.h>
+#endif
+#if HAVE_STDLIB_H
#include <stdlib.h>
-#include <stdio.h>
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#if HAVE_STDIO_H
+#include <stdio.h>
+#endif
#include "lib.h"