From fe5a6266dde08cece15025c75a80a45d977c57c2 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Sun, 2 Feb 2025 23:08:05 -0800 Subject: protosw: this is a kernel only header, put back #ifdef _KERNEL The uncommented #ifdef _KERNEL originates from 1997 by wollman@ (see 57bf258e3dc9e) with no clear original reason. Since these old times two abusers of the header leak were created - libprocstat(3) and netstat(1). These two already have a lot of _WANT_FOO hacks, so satisfy them with _WANT_PROTOSW. While here, cleanup and sort forward declaraions. --- lib/libprocstat/libprocstat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libprocstat/libprocstat.c') diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index b808085f5eed..90e4879ca05b 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -50,6 +50,7 @@ #define _WANT_SOCKET #include #include +#define _WANT_PROTOSW #include #include #define _WANT_UNPCB -- cgit v1.2.3