From: Guus Sliepen Date: Sat, 7 Dec 2013 21:20:10 +0000 (+0100) Subject: Stricter check for raw socket support. X-Git-Tag: 1.0.23-android-1~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98bbc5ff0c0f16a84d07167d23d01cc91decdfc6;p=oweals%2Ftinc.git Stricter check for raw socket support. --- diff --git a/src/raw_socket_device.c b/src/raw_socket_device.c index 1dd726f..0b97118 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;