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

CMakeLists.txt: fix LWS_HAS_GETOPT_LONG

Commit 6985244eb1 wrongly moved
LWS_HAS_GETOPT_LONG under LWS_HAVE_PTHREAD_H so revert this change

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine 2020-01-03 14:26:18 +01:00 committed by Andy Green
parent bfcbe8f542
commit b57c520495

View file

@ -895,15 +895,15 @@ if (LWS_HAVE_PTHREAD_H)
pthread_setname_np(th, NULL);
return 0;
}" LWS_HAS_PTHREAD_SETNAME_NP)
CHECK_C_SOURCE_COMPILES("#include <stddef.h>
#include <getopt.h>
int main(void) {
void *p = (void *)getopt_long;
return p != NULL;
}" LWS_HAS_GETOPT_LONG)
endif()
CHECK_C_SOURCE_COMPILES("#include <stddef.h>
#include <getopt.h>
int main(void) {
void *p = (void *)getopt_long;
return p != NULL;
}" LWS_HAS_GETOPT_LONG)
if (NOT PID_T_SIZE)
set(pid_t int)