pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Conditionally include h...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f4d5ffdd83e
branches:  trunk
changeset: 503573:2f4d5ffdd83e
user:      ben <ben%pkgsrc.org@localhost>
date:      Wed Nov 23 14:59:44 2005 +0000

description:
Conditionally include header files, and include nbcompat.h
Addresses PR#32149

diffstat:

 pkgtools/pkg_install/files/lib/pexec.c |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 097337a4d930 -r 2f4d5ffdd83e pkgtools/pkg_install/files/lib/pexec.c
--- a/pkgtools/pkg_install/files/lib/pexec.c    Wed Nov 23 14:33:50 2005 +0000
+++ b/pkgtools/pkg_install/files/lib/pexec.c    Wed Nov 23 14:59:44 2005 +0000
@@ -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>
+#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#if HAVE_STDIO_H
 #include <stdio.h>
-#include <unistd.h>
+#endif
 
 #include "lib.h"
 



Home | Main Index | Thread Index | Old Index