]> git.ipfire.org Git - thirdparty/libbsd.git/commit
man: Prune unneeded <sys/types.h> include in setproctitle(3)
authorGuilherme Janczak <guilherme.janczak@yandex.com>
Wed, 7 Dec 2022 04:06:37 +0000 (04:06 +0000)
committerGuillem Jover <guillem@hadrons.org>
Tue, 13 Dec 2022 02:49:29 +0000 (03:49 +0100)
commit23377191e85267c091d8ae79cb1dd5c21a6cf305
tree2d8e302df5dbcab3c90605370fc573ff3cb04032
parent5dea9da38d9e657c10de099bce68c12fc38a39dc
man: Prune unneeded <sys/types.h> include in setproctitle(3)

FreeBSD first declared the function in unistd.h in 2000:
https://cgit.freebsd.org/src/commit/include/unistd.h?id=9feac5c21886
No other #include line was needed to use the function, but the man page
unnecessarily instructed users to include sys/types.h until 2022-11-29:
https://cgit.freebsd.org/src/commit/?id=5b6f0a5012e9bc37dcb32b57b41e2443a46da620

libbsd first declared the function in unistd.h in 2010 with commit
3fed78e5b08f78256e533788b4bcd6502b0949d7 and inherited the bug from
FreeBSD's man page.

No need to do anything for backwards compat.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
man/setproctitle.3bsd