aboutsummaryrefslogtreecommitdiffstats
path: root/config.nmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-03-23 01:25:01 +0000
committerGuy Harris <guy@alum.mit.edu>2005-03-23 01:25:01 +0000
commit46e1907f136cd62ff768a9c509a0bf368024e141 (patch)
treef219510fe2e4d6014ba976062506b55f857f3bcb /config.nmake
parent79daa1e80ee9ee42a25fdf1119feedc423709b36 (diff)
If we have "pcap_freecode()", use it to free the instructions for a BPF
filter after installing the filter. Set HAVE_PCAP_LIB_VERSION if we're building with WinPcap 3.1; it's not present in earlier versions, but is present in current 3.1 betas. Check HAVE_PCAP_LIB_VERSION when building capture-wpcap.c. svn path=/trunk/; revision=13872
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.nmake b/config.nmake
index 865e747528..59ee1b1a33 100644
--- a/config.nmake
+++ b/config.nmake
@@ -284,11 +284,17 @@ PCAP_FINDALLDEVS_CONFIG=
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
WPCAP_CONSTIFIED=
!ENDIF
+!IF "$(WINPCAP_VERSION)" == "3.1"
+PCAP_LIB_VERSION_CONFIG=^#define HAVE_PCAP_LIB_VERSION 1
+!ELSE
+PCAP_LIB_VERSION_CONFIG=
+!ENDIF
!ELSE
WINPCAP_CONFIG=
PCAP_FINDALLDEVS_CONFIG=
PCAP_DATALINK_NAME_TO_VAL_CONFIG=
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
+PCAP_LIB_VERSION_CONFIG=
WPCAP_CONSTIFIED=
!ENDIF