From 221f559bcf13febc9a4135c5eb54c236c543ee19 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 7 Dec 2013 22:20:10 +0100 Subject: [PATCH] Stricter check for raw socket support. --- src/raw_socket_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw_socket_device.c b/src/raw_socket_device.c index 48954d5..00fdef0 100644 --- a/src/raw_socket_device.c +++ b/src/raw_socket_device.c @@ -32,7 +32,7 @@ #include "route.h" #include "xalloc.h" -#if defined(PF_PACKET) && defined(ETH_P_ALL) && defined(AF_PACKET) +#if defined(PF_PACKET) && defined(ETH_P_ALL) && defined(AF_PACKET) && defined(SIOCGIFINDEX) static char *device_info; static uint64_t device_total_in = 0; -- 2.25.1