From 9794feed8fcd22343c05cd50f38a65e08dc3dda9 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 4 May 2019 17:42:57 -0500 Subject: [PATCH] tsearch.3: SYNOPSIS: clarify that twalk_r() requires _GNU_SOURCE Signed-off-by: Michael Kerrisk --- man3/tsearch.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5