Source-Changes-HG archive

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

[src/netbsd-2-0]: src/usr.bin Pull up revision 1.8 (requested by jmc in ticke...



details:   https://anonhg.NetBSD.org/src/rev/ddc7190a987f
branches:  netbsd-2-0
changeset: 561515:ddc7190a987f
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 07:19:32 2004 +0000

description:
Pull up revision 1.8 (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:

 usr.bin/ctags/print.c     |  8 ++++++--
 usr.bin/xlint/lint2/msg.c |  8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diffs (51 lines):

diff -r 7c4bccc782ef -r ddc7190a987f usr.bin/ctags/print.c
--- a/usr.bin/ctags/print.c     Tue Jun 22 07:19:12 2004 +0000
+++ b/usr.bin/ctags/print.c     Tue Jun 22 07:19:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.7 2003/08/07 11:13:31 agc Exp $    */
+/*     $NetBSD: print.c,v 1.7.2.1 2004/06/22 07:19:32 tron Exp $       */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -29,12 +29,16 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)print.c    8.3 (Berkeley) 4/2/94";
 #else 
-__RCSID("$NetBSD: print.c,v 1.7 2003/08/07 11:13:31 agc Exp $");
+__RCSID("$NetBSD: print.c,v 1.7.2.1 2004/06/22 07:19:32 tron Exp $");
 #endif
 #endif /* not lint */
 
diff -r 7c4bccc782ef -r ddc7190a987f usr.bin/xlint/lint2/msg.c
--- a/usr.bin/xlint/lint2/msg.c Tue Jun 22 07:19:12 2004 +0000
+++ b/usr.bin/xlint/lint2/msg.c Tue Jun 22 07:19:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.c,v 1.7 2002/01/31 19:36:55 tv Exp $       */
+/*     $NetBSD: msg.c,v 1.7.4.1 2004/06/22 07:19:32 tron Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -31,9 +31,13 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: msg.c,v 1.7 2002/01/31 19:36:55 tv Exp $");
+__RCSID("$NetBSD: msg.c,v 1.7.4.1 2004/06/22 07:19:32 tron Exp $");
 #endif
 
 #include <stdio.h>



Home | Main Index | Thread Index | Old Index