aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2010-09-10 06:33:31 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2010-09-10 06:33:31 +0200
commite417acb023de47daa77b45e49d7bdf5af33a3226 (patch)
treed953f0d81cfc03886889380e121758ffdac65dbf /man7/unix.7
parentfbea0f8160fc322fe97a02fa0fd9dc7ac568ada4 (diff)
downloadman-pages-e417acb023de47daa77b45e49d7bdf5af33a3226.tar.gz
fcntl.2, intro.2, open.2, poll.2, ftw.3, intro.3, matherr.3, system.3, tmpnam.3, unix.7: Note that feature test macros must be defined before *any* includes
Programmers often make the mistake of including a feature test macro only after having already included some header files. This patch adds some text at opportune places to remind programmers to do things the right way. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/unix.7')
-rw-r--r--man7/unix.74
1 files changed, 3 insertions, 1 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index b891905de6..a397a9dfc8 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -235,7 +235,9 @@ struct ucred {
Since glibc 2.8, the
.B _GNU_SOURCE
-feature test macro must be defined in order to obtain the definition
+feature test macro must be defined (before including
+.I any
+header files) in order to obtain the definition
of this structure.
The credentials which the sender specifies are checked by the kernel.