aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.nmake1
-rw-r--r--capture-wpcap.c9
-rw-r--r--config.nmake6
3 files changed, 1 insertions, 15 deletions
diff --git a/Makefile.nmake b/Makefile.nmake
index 8c681ac33a..7022520aaf 100644
--- a/Makefile.nmake
+++ b/Makefile.nmake
@@ -205,7 +205,6 @@ config.h : config.h.win32 config.nmake
-e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
-e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
-e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
- -e "s/@HAVE_PCAP_LIB_VERSION@/$(PCAP_LIB_VERSION_CONFIG)/" \
-e "s/@HAVE_LIBETHEREALDLL@/$(LIBETHEREAL_CONFIG)/" \
-e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
< config.h.win32 > $@
diff --git a/capture-wpcap.c b/capture-wpcap.c
index 9163b2997d..85dbf849ab 100644
--- a/capture-wpcap.c
+++ b/capture-wpcap.c
@@ -76,9 +76,7 @@ static int (*p_pcap_datalink_name_to_val) (const char *);
#ifdef HAVE_PCAP_DATALINK_VAL_TO_NAME
static const char *(*p_pcap_datalink_val_to_name) (int);
#endif
-#ifdef HAVE_PCAP_LIB_VERSION
static const char *(*p_pcap_lib_version) (void);
-#endif
static int (*p_pcap_setbuff) (pcap_t *, int dim);
typedef struct {
@@ -118,9 +116,7 @@ load_wpcap(void)
#ifdef HAVE_PCAP_DATALINK_VAL_TO_NAME
SYM(pcap_datalink_val_to_name, TRUE),
#endif
-#ifdef HAVE_PCAP_LIB_VERSION
SYM(pcap_lib_version, TRUE),
-#endif
SYM(pcap_setbuff, TRUE),
{ NULL, NULL, FALSE }
};
@@ -632,12 +628,9 @@ get_runtime_pcap_version(GString *str)
}
g_string_sprintfa(str, "with ");
-#ifdef HAVE_PCAP_LIB_VERSION
if (p_pcap_lib_version != NULL)
g_string_sprintfa(str, p_pcap_lib_version());
- else
-#endif
- if (packetVer != NULL)
+ else if (packetVer != NULL)
g_string_sprintfa(str, "WinPcap (%s)", packetVer);
else
g_string_append(str, "WinPcap (version unknown)");
diff --git a/config.nmake b/config.nmake
index 59ee1b1a33..865e747528 100644
--- a/config.nmake
+++ b/config.nmake
@@ -284,17 +284,11 @@ 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