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 Pullup rev 1.2 (requested by wiz...



details:   https://anonhg.NetBSD.org/src/rev/1bb99abf14d7
branches:  netbsd-3
changeset: 577463:1bb99abf14d7
user:      jmc <jmc%NetBSD.org@localhost>
date:      Tue Nov 08 18:17:21 2005 +0000

description:
Pullup rev 1.2 (requested by wiz in ticket #940)
 Sync with pkgsrc: wrap some headers in #ifs.
 Replace wait(2) with equivalent waitpid(2); for Linux.

diffstat:

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

diffs (39 lines):

diff -r e078268b9767 -r 1bb99abf14d7 usr.sbin/pkg_install/lib/dewey.c
--- a/usr.sbin/pkg_install/lib/dewey.c  Tue Nov 08 09:36:01 2005 +0000
+++ b/usr.sbin/pkg_install/lib/dewey.c  Tue Nov 08 18:17:21 2005 +0000
@@ -1,4 +1,9 @@
-/*     $NetBSD: dewey.c,v 1.1.2.2 2005/11/06 13:41:32 tron Exp $       */
+/*     $NetBSD: dewey.c,v 1.1.2.3 2005/11/08 18:17:21 jmc Exp $        */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
 
 /*
  * FreeBSD install - a package for the installation and maintainance
@@ -20,12 +25,24 @@
  *
  */
 
+#if HAVE_ASSERT_H
 #include <assert.h>
+#endif
+#if HAVE_CTYPE_H
 #include <ctype.h>
+#endif
+#if HAVE_ERR_H
 #include <err.h>
+#endif
+#if HAVE_FNMATCH_H
 #include <fnmatch.h>
+#endif
+#if HAVE_INTTYPES_H
 #include <inttypes.h>
+#endif
+#if HAVE_STRING_H
 #include <string.h>
+#endif
 
 #include "defs.h"
 #include "dewey.h"



Home | Main Index | Thread Index | Old Index