Source-Changes-HG archive

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

[src/trunk]: src convert -idirafter to -isystem, as recommended by cgd in PR ...



details:   https://anonhg.NetBSD.org/src/rev/e444d8b4d86c
branches:  trunk
changeset: 753264:e444d8b4d86c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Mar 22 01:29:29 2010 +0000

description:
convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.

diffstat:

 lib/libc/Makefile.inc       |  4 ++--
 lib/libcompat/Makefile      |  4 ++--
 usr.bin/kdump/mkioctls      |  4 ++--
 usr.bin/xlint/xlint/xlint.c |  6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

diffs (82 lines):

diff -r b8b1c8ea7e5a -r e444d8b4d86c lib/libc/Makefile.inc
--- a/lib/libc/Makefile.inc     Mon Mar 22 00:23:59 2010 +0000
+++ b/lib/libc/Makefile.inc     Mon Mar 22 01:29:29 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.4 2008/10/26 07:42:09 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.5 2010/03/22 01:29:29 mrg Exp $
 #      @(#)Makefile    8.2 (Berkeley) 2/3/94
 #
 # All library objects contain sccsid strings by default; they may be
@@ -52,7 +52,7 @@
 ARCHDIR=       ${.CURDIR}/arch/${ARCHSUBDIR}
 AFLAGS+=       -I${ARCHDIR}
 .if defined(DESTDIR)
-AFLAGS+=       -nostdinc -idirafter ${DESTDIR}/usr/include
+AFLAGS+=       -nostdinc -isystem ${DESTDIR}/usr/include
 .endif
 CLEANFILES+=   tags
 
diff -r b8b1c8ea7e5a -r e444d8b4d86c lib/libcompat/Makefile
--- a/lib/libcompat/Makefile    Mon Mar 22 00:23:59 2010 +0000
+++ b/lib/libcompat/Makefile    Mon Mar 22 01:29:29 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.29 2009/02/14 13:52:51 abs Exp $
+#      $NetBSD: Makefile,v 1.30 2010/03/22 01:29:30 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -6,7 +6,7 @@
 CPPFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -D__LIBCOMPAT_SOURCE__
 AFLAGS+=-I${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}
 .if defined(DESTDIR)
-AFLAGS+=-nostdinc -idirafter ${DESTDIR}/usr/include
+AFLAGS+=-nostdinc -isystem ${DESTDIR}/usr/include
 .endif
 
 .PATH: ${.CURDIR}/4.1/${MACHINE_ARCH} ${.CURDIR}/4.1 \
diff -r b8b1c8ea7e5a -r e444d8b4d86c usr.bin/kdump/mkioctls
--- a/usr.bin/kdump/mkioctls    Mon Mar 22 00:23:59 2010 +0000
+++ b/usr.bin/kdump/mkioctls    Mon Mar 22 01:29:29 2010 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mkioctls,v 1.38 2008/10/25 22:18:15 apb Exp $
+#      $NetBSD: mkioctls,v 1.39 2010/03/22 01:29:30 mrg Exp $
 #
 # Copyright (c) 1994
 #      The Regents of the University of California.  All rights reserved.
@@ -82,7 +82,7 @@
        echo "#include <$i>"
 done | ${SED} -e "s,${DESTDIR}/usr/include/,,g"
 
-${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include -dM ${1+"$@"} | \
+${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include -dM ${1+"$@"} | \
 ${AWK} '
 BEGIN {
        keep["SLIOCGUNIT"] = 1; # Same as PPPIOCGASYNCMAP
diff -r b8b1c8ea7e5a -r e444d8b4d86c usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c       Mon Mar 22 00:23:59 2010 +0000
+++ b/usr.bin/xlint/xlint/xlint.c       Mon Mar 22 01:29:29 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.42 2009/04/15 01:20:57 christos Exp $ */
+/* $NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: xlint.c,v 1.42 2009/04/15 01:20:57 christos Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $");
 #endif
 
 #include <sys/param.h>
@@ -479,7 +479,7 @@
                                usage();
                        dflag = 1;
                        appcstrg(&cflags, "-nostdinc");
-                       appcstrg(&cflags, "-idirafter");
+                       appcstrg(&cflags, "-isystem");
                        appcstrg(&cflags, optarg);
                        break;
 



Home | Main Index | Thread Index | Old Index