dect
/
libpcap
Archived
13
0
Fork 0

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:
Guy Harris 2009-07-02 12:31:02 -07:00
parent dcf1642930
commit 50894808ec
1 changed files with 4 additions and 1 deletions

View File

@ -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;