Module Name: src
Committed By: plunky
Date: Thu Apr 22 14:37:06 UTC 2010
Modified Files:
src/usr.bin/netstat: unix.c
Log Message:
no need to forward declare struct uio and proc before including
<sys/file.h> as it does that internally, and don't continue the
_KERNEL definition afterwards as it causes some other problems
with pcc relating to unreferenced symbols in unused static
inline functions which gcc optimises away.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/netstat/unix.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/unix.c
diff -u src/usr.bin/netstat/unix.c:1.29 src/usr.bin/netstat/unix.c:1.30
--- src/usr.bin/netstat/unix.c:1.29 Sun Apr 12 16:08:37 2009
+++ src/usr.bin/netstat/unix.c Thu Apr 22 14:37:06 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: unix.c,v 1.29 2009/04/12 16:08:37 lukem Exp $ */
+/* $NetBSD: unix.c,v 1.30 2010/04/22 14:37:06 plunky Exp $ */
/*-
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)unix.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: unix.c,v 1.29 2009/04/12 16:08:37 lukem Exp $");
+__RCSID("$NetBSD: unix.c,v 1.30 2010/04/22 14:37:06 plunky Exp $");
#endif
#endif /* not lint */
@@ -53,9 +53,8 @@
#include <sys/un.h>
#include <sys/unpcb.h>
#define _KERNEL
-struct uio;
-struct proc;
#include <sys/file.h>
+#undef _KERNEL
#include <netinet/in.h>