From fde8c823ac1010eafa2b5a735b7ad8a9448d23dc Mon Sep 17 00:00:00 2001 From: Silas Parker Date: Tue, 15 May 2018 08:28:21 +0800 Subject: [PATCH] cmake: align include used for LWS_HAVE_TCP_USER_TIMEOUT --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2609694..81c04c0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1420,7 +1420,7 @@ CHECK_C_SOURCE_COMPILES("#define _GNU_SOURCE\n#include \nint main(void # tcp keepalive needs this on linux to work practically... but it only exists # after kernel 2.6.37 -CHECK_C_SOURCE_COMPILES("#include \nint main(void) { return TCP_USER_TIMEOUT; }\n" LWS_HAVE_TCP_USER_TIMEOUT) +CHECK_C_SOURCE_COMPILES("#include \nint main(void) { return TCP_USER_TIMEOUT; }\n" LWS_HAVE_TCP_USER_TIMEOUT) set(CMAKE_REQUIRED_LIBRARIES ${temp}) # Generate the lws_config.h that includes all the public compilation settings.