diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-02-03 07:08:05 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-02-03 17:48:53 +0000 |
commit | fe5a6266dde08cece15025c75a80a45d977c57c2 (patch) | |
tree | 3f4fd5a8154dcc03b7e7027533036e23d0ad5ed4 /lib | |
parent | bf3338e74b4432c17c992f46478c69ad020c5307 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libprocstat/libprocstat.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <sys/socketvar.h> #include <sys/domain.h> +#define _WANT_PROTOSW #include <sys/protosw.h> #include <sys/un.h> #define _WANT_UNPCB |