From b425bde77083958e45ca62526896f9c014ae88ab Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 2 Apr 2018 18:57:25 -0700 Subject: Fix MSVC build. We need to use PCAP_API in the declarations. --- nametoaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nametoaddr.c') diff --git a/nametoaddr.c b/nametoaddr.c index a749b8e6..087d14be 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -550,7 +550,7 @@ struct eproto { * warnings we might get from compilers about the lack of a * declaration. */ -extern struct eproto eproto_db[]; +PCAP_API struct eproto eproto_db[]; PCAP_API_DEF struct eproto eproto_db[] = { { "pup", ETHERTYPE_PUP }, { "xns", ETHERTYPE_NS }, -- cgit v1.2.3