Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin Protect use of __RCSID() with a check to ensure tha...



details:   https://anonhg.NetBSD.org/src/rev/f798c9b095f4
branches:  trunk
changeset: 545733:f798c9b095f4
user:      briggs <briggs%NetBSD.org@localhost>
date:      Wed Apr 16 01:32:07 2003 +0000

description:
Protect use of __RCSID() with a check to ensure that it's defined.
Suggested by Ian Lance Taylor on tech-userlevel@ to help cross-compilation
on Red Hat 7.3.

diffstat:

 usr.sbin/installboot/arch/i386.c |  6 ++++--
 usr.sbin/makefs/ffs/mkfs.c       |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 7b88ef2bbc16 -r f798c9b095f4 usr.sbin/installboot/arch/i386.c
--- a/usr.sbin/installboot/arch/i386.c  Wed Apr 16 00:07:17 2003 +0000
+++ b/usr.sbin/installboot/arch/i386.c  Wed Apr 16 01:32:07 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i386.c,v 1.3 2003/04/15 14:35:57 dsl Exp $ */
+/* $NetBSD: i386.c,v 1.4 2003/04/16 01:37:41 briggs Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,9 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: i386.c,v 1.3 2003/04/15 14:35:57 dsl Exp $");
+#if defined(__RCSID) && !defined(__lint)
+__RCSID("$NetBSD: i386.c,v 1.4 2003/04/16 01:37:41 briggs Exp $");
+#endif /* __RCSID && !__lint */
 
 #if HAVE_CONFIG_H
 #include "config.h"
diff -r 7b88ef2bbc16 -r f798c9b095f4 usr.sbin/makefs/ffs/mkfs.c
--- a/usr.sbin/makefs/ffs/mkfs.c        Wed Apr 16 00:07:17 2003 +0000
+++ b/usr.sbin/makefs/ffs/mkfs.c        Wed Apr 16 01:32:07 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkfs.c,v 1.14 2003/04/02 10:39:49 fvdl Exp $   */
+/*     $NetBSD: mkfs.c,v 1.15 2003/04/16 01:32:07 briggs Exp $ */
 
 /*
  * Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -47,7 +47,9 @@
 #if 0
 static char sccsid[] = "@(#)mkfs.c     8.11 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: mkfs.c,v 1.14 2003/04/02 10:39:49 fvdl Exp $");
+#ifdef __RCSID
+__RCSID("$NetBSD: mkfs.c,v 1.15 2003/04/16 01:32:07 briggs Exp $");
+#endif
 #endif
 #endif /* not lint */
 



Home | Main Index | Thread Index | Old Index