From: Petr Špaček Date: Tue, 22 Oct 2019 10:40:49 +0000 (+0200) Subject: doh debug: avoid warning about _GNU_SOURCE redefinition X-Git-Tag: v4.3.0~8^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413b9790fef2743874078c58bed5aacc48992e64;p=thirdparty%2Fknot-resolver.git doh debug: avoid warning about _GNU_SOURCE redefinition --- diff --git a/modules/http/debug_opensslkeylog.c b/modules/http/debug_opensslkeylog.c index 9ab0426be..9677c9512 100644 --- a/modules/http/debug_opensslkeylog.c +++ b/modules/http/debug_opensslkeylog.c @@ -27,7 +27,10 @@ # define NO_OPENSSL_102_SUPPORT #endif -#define _GNU_SOURCE /* for RTLD_NEXT */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE /* for RTLD_NEXT */ +#endif + #include #ifndef NO_OPENSSL_102_SUPPORT # include