From 6e3a6d99905ba787e5a57bdbc1025978d1e720a2 Mon Sep 17 00:00:00 2001 From: calvin2021y Date: Wed, 7 Jul 2021 19:10:06 +0100 Subject: [PATCH] openssl: manage _GNU_SOURCE better --- lib/tls/openssl/openssl-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tls/openssl/openssl-client.c b/lib/tls/openssl/openssl-client.c index af764c0f7..aa1c5df16 100644 --- a/lib/tls/openssl/openssl-client.c +++ b/lib/tls/openssl/openssl-client.c @@ -25,8 +25,10 @@ #include "lws_config.h" #ifdef LWS_HAVE_X509_VERIFY_PARAM_set1_host /* Before glibc 2.10, strnlen required _GNU_SOURCE */ +#if !defined(_GNU_SOURCE) #define _GNU_SOURCE #endif +#endif #include #include "private-lib-core.h"