From f290068cc95f6e635791ee7f871e7118b6458502 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 6 Sep 2017 22:01:38 -0700 Subject: Push pcap_lib_version() into the pcap-XXX.c files. This lets us move the Windows version to pcap-win32.c, so we don't have to include packet32.h in pcap.c. It also gets rid of some #ifdefs, and lets us construct the version string on UN*X platforms, and MS-DOS, at compile time. --- pcap-null.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pcap-null.c') diff --git a/pcap-null.c b/pcap-null.c index 2334b946..c4d4cfa9 100644 --- a/pcap-null.c +++ b/pcap-null.c @@ -51,11 +51,13 @@ pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf) return (0); } +#include "pcap_version.h" + /* - * No platform-specific information. + * Libpcap version string. */ const char * -pcap_platform_lib_version(void) +pcap_lib_version(void) { - return (NULL); + return (PCAP_VERSION_STRING); } -- cgit v1.2.3