]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doh debug: avoid warning about _GNU_SOURCE redefinition
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 22 Oct 2019 10:40:49 +0000 (12:40 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 20 Nov 2019 12:17:38 +0000 (13:17 +0100)
modules/http/debug_opensslkeylog.c

index 9ab0426be9af47d9e53e0a45630bf3413fc5255a..9677c9512c226852f8815371c5893526ee2e146b 100644 (file)
 #   define NO_OPENSSL_102_SUPPORT
 #endif
 
-#define _GNU_SOURCE /* for RTLD_NEXT */
+#ifndef _GNU_SOURCE
+#   define _GNU_SOURCE /* for RTLD_NEXT */
+#endif
+
 #include <dlfcn.h>
 #ifndef NO_OPENSSL_102_SUPPORT
 #   include <openssl/ssl.h>