]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use proper declaration
authorGisle Vanem <[email protected]>
Fri, 2 May 2014 13:36:14 +0000 (06:36 -0700)
committerGisle Vanem <[email protected]>
Fri, 2 May 2014 13:36:14 +0000 (06:36 -0700)
'eproto_db' is in libpcap. Thus use a proper 'extern __declspec(dllimport)' declaration.

addrtoname.c

index 97fd04c40234a21d4dd78381d36a5b11d567c42d..eb0b2aeefe1f7c423a1bf43c6277c6ce592f660e 100644 (file)
@@ -756,7 +756,7 @@ init_servarray(netdissect_options *ndo)
 
 /* in libpcap.a (nametoaddr.c) */
 #if defined(WIN32) && !defined(USE_STATIC_LIBPCAP)
-__declspec(dllimport)
+extern __declspec(dllimport)
 #else
 extern
 #endif