From ed7fe739c4d66952b57b48990342ddba50d6f7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Thu, 28 Oct 2021 14:26:09 +0200 Subject: [PATCH] remove last remaining reference to _REENTRANT macro and fix DLZ example It was used only as guard against unused variable declaration, but the surrounding code depends on strtok_r being defined unconditionally, so there is no point in guarding a variable. Glibc documentation suggests it is obsolete anyway and e.g. Meson build system decided to ignore it. It seems to be required only by old Solaris compiler and OpenIndiana uses gcc. --- contrib/dlz/example/dlz_example.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/contrib/dlz/example/dlz_example.c b/contrib/dlz/example/dlz_example.c index 1df74af6f3..f7b6689c95 100644 --- a/contrib/dlz/example/dlz_example.c +++ b/contrib/dlz/example/dlz_example.c @@ -692,9 +692,7 @@ modrdataset(struct dlz_example_data *state, const char *name, char *full_name, *dclass, *type, *data, *ttlstr, *buf; char absolute[1024]; isc_result_t result; -#if defined(_REENTRANT) char *saveptr = NULL; -#endif /* defined(_REENTRANT) */ buf = strdup(rdatastr); if (buf == NULL) {