enabling GSO only for linux

This commit is contained in:
Rahul Jadhav 2020-06-08 19:28:23 +08:00
parent d25c3cb2d7
commit 71930962be
2 changed files with 3 additions and 1 deletions

View file

@ -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>

View file

@ -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