From 413b9790fef2743874078c58bed5aacc48992e64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Tue, 22 Oct 2019 12:40:49 +0200 Subject: [PATCH] doh debug: avoid warning about _GNU_SOURCE redefinition --- modules/http/debug_opensslkeylog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.2