If HAVE_PACKET_AUXDATA isn't defined, don't declare a variable that's
used only if HAVE_PACKET_AUXDATA is defined.
This commit is contained in:
parent
dcf1642930
commit
50894808ec
|
@ -2203,7 +2203,10 @@ activate_new(pcap_t *handle)
|
||||||
#ifdef HAVE_PF_PACKET_SOCKETS
|
#ifdef HAVE_PF_PACKET_SOCKETS
|
||||||
const char *device = handle->opt.source;
|
const char *device = handle->opt.source;
|
||||||
int is_any_device = (strcmp(device, "any") == 0);
|
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;
|
int err = 0;
|
||||||
struct packet_mreq mr;
|
struct packet_mreq mr;
|
||||||
|
|
||||||
|
|
Reference in New Issue