diff --git a/manual/examples/twalk.c b/manual/examples/twalk.c
index e9aa13dc75..970096d036 100644
--- a/manual/examples/twalk.c
+++ b/manual/examples/twalk.c
@@ -15,6 +15,7 @@
along with this program; if not, see .
*/
+#define _GNU_SOURCE 1
#include
struct twalk_with_twalk_r_closure