Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.sbin/pkg_install/lib Pull up following revision(s) (r...



details:   https://anonhg.NetBSD.org/src/rev/1b1d8aca7dc2
branches:  netbsd-3
changeset: 577562:1b1d8aca7dc2
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Nov 27 21:01:53 2005 +0000

description:
Pull up following revision(s) (requested by reuben in ticket #991):
        usr.sbin/pkg_install/lib/pexec.c: revision 1.2
Conditionally include header files, and include nbcompat.h
Addresses PR#32149

diffstat:

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

diffs (30 lines):

diff -r 3050661b23fb -r 1b1d8aca7dc2 usr.sbin/pkg_install/lib/pexec.c
--- a/usr.sbin/pkg_install/lib/pexec.c  Sun Nov 27 20:58:35 2005 +0000
+++ b/usr.sbin/pkg_install/lib/pexec.c  Sun Nov 27 21:01:53 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