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/xinstall Pull up revision 1.87 (requested by jm...



details:   https://anonhg.NetBSD.org/src/rev/5449476dca27
branches:  netbsd-2-0
changeset: 561529:5449476dca27
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 07:24:55 2004 +0000

description:
Pull up revision 1.87 (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/xinstall/xinstall.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3dd6d87669a9 -r 5449476dca27 usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c       Tue Jun 22 07:24:33 2004 +0000
+++ b/usr.bin/xinstall/xinstall.c       Tue Jun 22 07:24:55 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xinstall.c,v 1.86 2004/02/02 23:25:36 lukem Exp $      */
+/*     $NetBSD: xinstall.c,v 1.86.2.1 2004/06/22 07:24:55 tron Exp $   */
 
 /*
  * Copyright (c) 1987, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
 #else
-__RCSID("$NetBSD: xinstall.c,v 1.86 2004/02/02 23:25:36 lukem Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.86.2.1 2004/06/22 07:24:55 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -578,7 +578,7 @@
                        /* ensure that from_sb & tv are sane if !dolink */
                if (stat(from_name, &from_sb))
                        err(1, "%s: stat", from_name);
-#ifdef BSD4_4
+#if BSD4_4 && !HAVE_NBTOOL_CONFIG_H
                TIMESPEC_TO_TIMEVAL(&tv[0], &from_sb.st_atimespec);
                TIMESPEC_TO_TIMEVAL(&tv[1], &from_sb.st_mtimespec);
 #else



Home | Main Index | Thread Index | Old Index