From: Guilherme Janczak Date: Wed, 7 Dec 2022 04:06:37 +0000 (+0000) Subject: man: Prune unneeded include in setproctitle(3) X-Git-Tag: 0.11.8~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23377191e85267c091d8ae79cb1dd5c21a6cf305;p=thirdparty%2Flibbsd.git man: Prune unneeded 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 --- diff --git a/man/setproctitle.3bsd b/man/setproctitle.3bsd index 1a79088..4a6609f 100644 --- a/man/setproctitle.3bsd +++ b/man/setproctitle.3bsd @@ -20,7 +20,7 @@ .\" $FreeBSD$ .\" .\" The following requests are required for all man pages. -.Dd December 16, 1995 +.Dd December 7, 2022 .Dt setproctitle 3bsd .Os .Sh NAME @@ -31,7 +31,6 @@ .ds doc-str-Lb-libbsd \*[str-Lb-libbsd] .Lb libbsd .Sh SYNOPSIS -.In sys/types.h .In unistd.h (See .Xr libbsd 7