We need to use PCAP_API in the declarations.
* 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 },
* warnings we might get from compilers about the lack of a
* declaration.
*/
-extern char pcap_version[];
+PCAP_API char pcap_version[];
PCAP_API_DEF char pcap_version[] = PACKAGE_VERSION;
static int