Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat it is not [any longer] necessary to #define ...



details:   https://anonhg.NetBSD.org/src/rev/54abc4b0a039
branches:  trunk
changeset: 754164:54abc4b0a039
user:      plunky <plunky%NetBSD.org@localhost>
date:      Thu Apr 22 14:32:30 2010 +0000

description:
it is not [any longer] necessary to #define _KERNEL while including
<net/route.h> so remove it.

This fixes a build problem with pcc which is not as clever as gcc
when optimising away unused static inline functions which refer to
unknown symbols (eg sockaddr_dup).

diffstat:

 usr.bin/netstat/route.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r a02c82f86652 -r 54abc4b0a039 usr.bin/netstat/route.c
--- a/usr.bin/netstat/route.c   Thu Apr 22 14:28:48 2010 +0000
+++ b/usr.bin/netstat/route.c   Thu Apr 22 14:32:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.73 2009/04/12 16:08:37 lukem Exp $ */
+/*     $NetBSD: route.c,v 1.74 2010/04/22 14:32:30 plunky Exp $        */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c      8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: route.c,v 1.73 2009/04/12 16:08:37 lukem Exp $");
+__RCSID("$NetBSD: route.c,v 1.74 2010/04/22 14:32:30 plunky Exp $");
 #endif
 #endif /* not lint */
 
@@ -48,9 +48,7 @@
 #include <net/if.h>
 #include <net/if_dl.h>
 #include <net/if_types.h>
-#define _KERNEL
 #include <net/route.h>
-#undef _KERNEL
 #include <netinet/in.h>
 #include <netatalk/at.h>
 #include <netiso/iso.h>



Home | Main Index | Thread Index | Old Index