Stricter check for raw socket support.
[oweals/tinc.git] / src / raw_socket_device.c
index 1dd726f..0b97118 100644 (file)
@@ -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;