mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
enabling GSO only for linux
This commit is contained in:
parent
d25c3cb2d7
commit
71930962be
2 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
|||
#ifndef WIN32
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
|
|
@ -131,10 +131,13 @@ destroy_lsquic_reader_ctx (struct reader_ctx *ctx);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if __linux__
|
||||
#ifndef HAVE_GSO
|
||||
#if defined(SOL_UDP) && defined(UDP_SEGMENT)
|
||||
#include <netinet/udp.h>
|
||||
#define HAVE_GSO 1
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue