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:
parent
bfcbe8f542
commit
b57c520495
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue