aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-04-02 18:57:25 -0700
committerGuy Harris <guy@alum.mit.edu>2018-04-02 18:57:25 -0700
commitb425bde77083958e45ca62526896f9c014ae88ab (patch)
tree457fa780993325e17fb50091bbc411fd1daf9b7a /nametoaddr.c
parente54ab809ed63e243c53b15ac3b1f40adfe333cc1 (diff)
Fix MSVC build.
We need to use PCAP_API in the declarations.
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c2
1 files changed, 1 insertions, 1 deletions
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 },