From ac48c4ee8c09c8144f830cb66386b9dbe7298440 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 21 Feb 2012 14:06:55 +0100 Subject: [PATCH] Fix check for raw socket support. Also, move some variables so there are no compiler warnings about unused variables when there is no support for raw sockets. --- 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 b9671e3..1dd726f 100644 --- a/src/raw_socket_device.c +++ b/src/raw_socket_device.c @@ -32,12 +32,12 @@ #include "route.h" #include "xalloc.h" +#if defined(PF_PACKET) && defined(ETH_P_ALL) && defined(AF_PACKET) static char *device_info; static uint64_t device_total_in = 0; static uint64_t device_total_out = 0; -#if defined(PF_SOCKET) && defined(ETH_P_ALL) && defined(AF_PACKET) static bool setup_device(void) { struct ifreq ifr; struct sockaddr_ll sa; -- 2.25.1