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