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:
parent
c042ba8c65
commit
439651fa7e
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue