1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

openssl: manage _GNU_SOURCE better

This commit is contained in:
calvin2021y 2021-07-07 19:10:06 +01:00 committed by Andy Green
parent c042ba8c65
commit 439651fa7e

View file

@ -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 <string.h>
#include "private-lib-core.h"