diff options
author | ben <ben@pkgsrc.org> | 2005-11-23 14:59:44 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2005-11-23 14:59:44 +0000 |
commit | e7f4b3d65d9a2268dc2b6cc85e895c4595999b9f (patch) | |
tree | ba0a66d7444f35567afbeff07bfbd1e560421394 /pkgtools/pkg_install | |
parent | 7e3eb87fb412b35bf869de4487ec3a615c89c21e (diff) | |
download | pkgsrc-e7f4b3d65d9a2268dc2b6cc85e895c4595999b9f.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.c | 18 |
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" |