Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sockstat fix compilation



details:   https://anonhg.NetBSD.org/src/rev/2aeb1d545f5b
branches:  trunk
changeset: 350489:2aeb1d545f5b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 12 18:52:15 2017 +0000

description:
fix compilation

diffstat:

 usr.bin/sockstat/sockstat.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d1006ed94cb3 -r 2aeb1d545f5b usr.bin/sockstat/sockstat.c
--- a/usr.bin/sockstat/sockstat.c       Thu Jan 12 18:50:17 2017 +0000
+++ b/usr.bin/sockstat/sockstat.c       Thu Jan 12 18:52:15 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockstat.c,v 1.17 2011/05/29 04:45:08 manu Exp $ */
+/*     $NetBSD: sockstat.c,v 1.18 2017/01/12 18:52:15 christos Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -31,10 +31,12 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: sockstat.c,v 1.17 2011/05/29 04:45:08 manu Exp $");
+__RCSID("$NetBSD: sockstat.c,v 1.18 2017/01/12 18:52:15 christos Exp $");
 #endif
 
+#define _KERNEL
 #include <sys/types.h>
+#undef _KERNEL
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <sys/socket.h>
@@ -48,10 +50,10 @@
 #include <netinet/in_pcb_hdr.h>
 #include <netinet/tcp_fsm.h>
 
-#define _KERNEL
+#define _KMEMUSER
 /* want DTYPE_* defines */
 #include <sys/file.h>
-#undef _KERNEL
+#undef _KMEMUSER
 
 #include <arpa/inet.h>
 



Home | Main Index | Thread Index | Old Index