From 3c3c49f3b22a72fbc4d79b12dee645ba0bd46ee4 Mon Sep 17 00:00:00 2001 From: Silas Parker Date: Tue, 15 May 2018 08:04:48 +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 9c6844246..97483593c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1423,7 +1423,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.