aboutsummaryrefslogtreecommitdiffstats
path: root/config.nmake
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-23 01:25:01 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-23 01:25:01 +0000
commitafae35390515c2555f1199d10a2fd103e8c7441b (patch)
treef219510fe2e4d6014ba976062506b55f857f3bcb /config.nmake
parentad3cd277de12e117a7a17bd4817fb93aa8dfd972 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13872 f5534014-38df-0310-8fa8-9805f1628bb7
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