From: Alexander Gozman Date: Fri, 13 Jun 2014 16:36:54 +0000 (+0400) Subject: Fix compile-time error on old kernels and ethtool.h X-Git-Tag: suricata-2.0.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=405baa3cb2e7864171e1568584d560e99521935c;p=thirdparty%2Fsuricata.git Fix compile-time error on old kernels and ethtool.h --- diff --git a/src/util-ioctl.c b/src/util-ioctl.c index 0f144ec511..73b113910e 100644 --- a/src/util-ioctl.c +++ b/src/util-ioctl.c @@ -151,7 +151,7 @@ int GetIfaceMaxPacketSize(char *pcap_dev) */ int GetIfaceOffloading(char *pcap_dev) { -#ifdef ETHTOOL_GGRO +#if defined (ETHTOOL_GGRO) && defined (ETHTOOL_GFLAGS) struct ifreq ifr; int fd; struct ethtool_value ethv;