Source-Changes-HG archive

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

[src/netbsd-2-0]: src Pull up revision 1.43 (requested by jmc in ticket #527):



details:   https://anonhg.NetBSD.org/src/rev/f63262ea5648
branches:  netbsd-2-0
changeset: 561543:f63262ea5648
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 07:30:06 2004 +0000

description:
Pull up revision 1.43 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

diffstat:

 lib/libc/gen/__fts13.c |  8 ++++++--
 usr.sbin/config/sem.c  |  6 +++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 04e48b3129a7 -r f63262ea5648 lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c    Tue Jun 22 07:29:43 2004 +0000
+++ b/lib/libc/gen/__fts13.c    Tue Jun 22 07:30:06 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __fts13.c,v 1.42 2003/10/27 00:12:42 lukem Exp $       */
+/*     $NetBSD: __fts13.c,v 1.42.2.1 2004/06/22 07:30:06 tron Exp $    */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -29,12 +29,16 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: __fts13.c,v 1.42 2003/10/27 00:12:42 lukem Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.42.2.1 2004/06/22 07:30:06 tron Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
diff -r 04e48b3129a7 -r f63262ea5648 usr.sbin/config/sem.c
--- a/usr.sbin/config/sem.c     Tue Jun 22 07:29:43 2004 +0000
+++ b/usr.sbin/config/sem.c     Tue Jun 22 07:30:06 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.41 2003/11/24 21:44:37 christos Exp $        */
+/*     $NetBSD: sem.c,v 1.41.2.1 2004/06/22 07:30:06 tron Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -40,6 +40,10 @@
  *     from: @(#)sem.c 8.1 (Berkeley) 6/6/93
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/param.h>
 #include <ctype.h>
 #include <stdio.h>



Home | Main Index | Thread Index | Old Index