]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix compile-time error on old kernels and ethtool.h
authorAlexander Gozman <goal81@gmail.com>
Fri, 13 Jun 2014 16:36:54 +0000 (20:36 +0400)
committerVictor Julien <victor@inliniac.net>
Mon, 14 Jul 2014 12:42:03 +0000 (14:42 +0200)
src/util-ioctl.c

index 0f144ec511ea7a5a33af6ee78e133016bed4ee40..73b113910ee47ea9d6522b85df31e78bc6cb8651 100644 (file)
@@ -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;