From: Michael Kerrisk Date: Sat, 4 May 2019 22:42:57 +0000 (-0500) Subject: tsearch.3: SYNOPSIS: clarify that twalk_r() requires _GNU_SOURCE X-Git-Tag: man-pages-5.01~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9794feed8fcd22343c05cd50f38a65e08dc3dda9;p=thirdparty%2Fman-pages.git tsearch.3: SYNOPSIS: clarify that twalk_r() requires _GNU_SOURCE Signed-off-by: Michael Kerrisk --- diff --git a/man3/tsearch.3 b/man3/tsearch.3 index 194607c86f..b47c2d2370 100644 --- a/man3/tsearch.3 +++ b/man3/tsearch.3 @@ -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 +.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 .PP .BI "void tdestroy(void *" root ", void (*" free_node ")(void *" nodep )); .fi