]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
tsearch.3: SYNOPSIS: clarify that twalk_r() requires _GNU_SOURCE
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 4 May 2019 22:42:57 +0000 (17:42 -0500)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 23:24:35 +0000 (18:24 -0500)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/tsearch.3

index 194607c86faa98189ca9edab9265a5e6aadf0ed6..b47c2d2370358d4efc697ee2eeb49d87c172a9b5 100644 (file)
@@ -43,12 +43,12 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary search tree
 .BI "void twalk(const void *" root ", void (*" action ")(const void *" nodep ,
 .BI "                                   VISIT " which ", int " depth "));"
 .PP
+.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
+.B #include <search.h>
+.PP
 .BI "void twalk_r(const void *" root ", void (*" action ")(const void *" np ,
 .BI "                                   VISIT " which ", void *" closure "),
 .BI "                                   void *" closure );
-
-.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.B #include <search.h>
 .PP
 .BI "void tdestroy(void *" root ", void (*" free_node ")(void *" nodep ));
 .fi