From: Emanuele Torre Date: Sun, 26 May 2024 06:42:18 +0000 (+0200) Subject: grantpt.3: SYNOPSIS: Explicitly show #define _XOPEN_SOURCE requirement X-Git-Tag: man-pages-6.9~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a9bf9cfc11345f98654ea90c192973049315ca;p=thirdparty%2Fman-pages.git grantpt.3: SYNOPSIS: Explicitly show #define _XOPEN_SOURCE requirement Like the unlockpt(3) function, grantpt(3) requires _XOPEN_SOURCE to be defined before including stdlib.h. unlockpt.3 explicitly shows this requirement in its SYNOPSIS: SYNOPSIS #define _XOPEN_SOURCE #include int unlockpt(int fd); But grantpt.3 did not: SYNOPSIS #include int grantpt(int fd); Message-ID: <20240526064227.937757-1-torreemanuele6@gmail.com> Signed-off-by: Alejandro Colomar --- diff --git a/man/man3/grantpt.3 b/man/man3/grantpt.3 index 94526691b..f2d70ebd6 100644 --- a/man/man3/grantpt.3 +++ b/man/man3/grantpt.3 @@ -11,6 +11,7 @@ Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf +.B #define _XOPEN_SOURCE .B #include .P .BI "int grantpt(int " fd ");"