Module Name:    src
Committed By:   plunky
Date:           Thu Apr 22 14:32:30 UTC 2010

Modified Files:
        src/usr.bin/netstat: route.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/usr.bin/netstat/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/netstat/route.c
diff -u src/usr.bin/netstat/route.c:1.73 src/usr.bin/netstat/route.c:1.74
--- src/usr.bin/netstat/route.c:1.73	Sun Apr 12 16:08:37 2009
+++ src/usr.bin/netstat/route.c	Thu Apr 22 14:32:30 2010
@@ -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>

Reply via email to