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

TCP_USER_TIMEOUT: make sure we include the correct header if linux

This commit is contained in:
Andy Green 2018-05-10 19:31:05 +08:00
parent a4b44320c0
commit f6f7c7e228

View file

@ -1,7 +1,7 @@
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010-2017 Andy Green <andy@warmcat.com>
* Copyright (C) 2010-2018 Andy Green <andy@warmcat.com>
*
* 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 <dirent.h>
#if defined(LWS_HAVE_TCP_USER_TIMEOUT) && defined(__linux__)
#include <linux/tcp.h>
#endif
int
lws_plat_socket_offset(void)
{