getgrent.3: Note glibc 2.22 changes for feature test macro requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-06-16 11:36:06 +02:00
parent 6a43458b0a
commit bccf0b0760
1 changed files with 10 additions and 4 deletions

View File

@ -60,10 +60,16 @@ _XOPEN_SOURCE\ >=\ 500
.BR getgrent (),
.BR endgrent ():
.RS 4
_XOPEN_SOURCE\ >=\ 500
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
Since glibc 2.22:
_XOPEN_SOURCE\ >=\ 500 ||
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
_DEFAULT_SOURCE
.br
Glibc 2.21 and earlier
_XOPEN_SOURCE\ >=\ 500
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
.PD
.ad b