Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/usr.sbin Pull up revision 1.24 (requested by jmc in tic...
details: https://anonhg.NetBSD.org/src/rev/b763459fc52d
branches: netbsd-2-0
changeset: 561534:b763459fc52d
user: tron <tron%NetBSD.org@localhost>
date: Tue Jun 22 07:26:45 2004 +0000
description:
Pull up revision 1.24 (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.sbin/config/files.c | 6 +++++-
usr.sbin/installboot/machines.c | 8 ++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 9f55bb6c8f75 -r b763459fc52d usr.sbin/config/files.c
--- a/usr.sbin/config/files.c Tue Jun 22 07:26:23 2004 +0000
+++ b/usr.sbin/config/files.c Tue Jun 22 07:26:45 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: files.c,v 1.23 2003/11/24 21:44:37 christos Exp $ */
+/* $NetBSD: files.c,v 1.23.2.1 2004/06/22 07:26:45 tron Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -40,6 +40,10 @@
* from: @(#)files.c 8.1 (Berkeley) 6/6/93
*/
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
#include <sys/param.h>
#include <errno.h>
#include <stdio.h>
diff -r 9f55bb6c8f75 -r b763459fc52d usr.sbin/installboot/machines.c
--- a/usr.sbin/installboot/machines.c Tue Jun 22 07:26:23 2004 +0000
+++ b/usr.sbin/installboot/machines.c Tue Jun 22 07:26:45 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machines.c,v 1.23 2004/03/13 22:51:50 dsl Exp $ */
+/* $NetBSD: machines.c,v 1.23.2.1 2004/06/22 07:26:45 tron Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -36,9 +36,13 @@
* 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: machines.c,v 1.23 2004/03/13 22:51:50 dsl Exp $");
+__RCSID("$NetBSD: machines.c,v 1.23.2.1 2004/06/22 07:26:45 tron Exp $");
#endif /* !__lint */
#include <sys/types.h>
Home |
Main Index |
Thread Index |
Old Index