From f6f7c7e228cf607a7d6f5225de6ffdfdc0fda5cc Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 10 May 2018 19:31:05 +0800 Subject: [PATCH] TCP_USER_TIMEOUT: make sure we include the correct header if linux --- lib/plat/lws-plat-unix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/plat/lws-plat-unix.c b/lib/plat/lws-plat-unix.c index bacc6af64..351e4b9b6 100644 --- a/lib/plat/lws-plat-unix.c +++ b/lib/plat/lws-plat-unix.c @@ -1,7 +1,7 @@ /* * libwebsockets - small server side websockets and web server implementation * - * Copyright (C) 2010-2017 Andy Green + * Copyright (C) 2010-2018 Andy Green * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -30,6 +30,10 @@ #endif #include +#if defined(LWS_HAVE_TCP_USER_TIMEOUT) && defined(__linux__) +#include +#endif + int lws_plat_socket_offset(void) {