aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-07-02 12:31:02 -0700
committerGuy Harris <gharris@steve.local>2009-07-02 12:31:02 -0700
commit50894808ec86ebc46b53a62fc2ba537230cd62d1 (patch)
tree01b9f874e6f04d5a617d3a2f063b9ab2c270ace3 /pcap-linux.c
parentdcf1642930024cdc15528bfc3452a3fa4c6af27a (diff)
If HAVE_PACKET_AUXDATA isn't defined, don't declare a variable that's
used only if HAVE_PACKET_AUXDATA is defined.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 0e23fd0..0150226 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2203,7 +2203,10 @@ activate_new(pcap_t *handle)
#ifdef HAVE_PF_PACKET_SOCKETS
const char *device = handle->opt.source;
int is_any_device = (strcmp(device, "any") == 0);
- int sock_fd = -1, arptype, val;
+ int sock_fd = -1, arptype;
+#ifdef HAVE_PACKET_AUXDATA
+ int val;
+#endif
int err = 0;
struct packet_mreq mr;