Just put pcap_version[] into pcap.c
savefile.c
sf-pcap-ng.c
sf-pcap.c
- version.c
bpf/net/bpf_filter.c
)
SSRC = @SSRC@
CSRC = pcap.c gencode.c optimize.c nametoaddr.c etherent.c \
savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \
- version.c bpf_image.c bpf_dump.c
+ bpf_image.c bpf_dump.c
GENSRC = scanner.c grammar.c bpf_filter.c
LIBOBJS = @LIBOBJS@
}
#endif /* _WIN32 */
+/*
+ * String containing the library version.
+ * Not explicitly exported via a header file - the right API to use
+ * is pcap_lib_version() - but some programs included it, so we
+ * provide it.
+ */
+PCAP_API_DEF char pcap_version[] = PACKAGE_VERSION;
+
static int
pcap_not_initialized(pcap_t *pcap)
{
+++ /dev/null
-#include "config.h"
-
-#include <pcap/funcattrs.h>
-
-PCAP_API_DEF char pcap_version[] = PACKAGE_VERSION;