]> The Tcpdump Group git mirrors - libpcap/blobdiff - gencode.c
Define ffs() in optimize.c; that's all that uses it.
[libpcap] / gencode.c
index 872f70d90266d2ed471ec4ccdb99fdfed47eaad4..73b95c625800e41573a766fd82922f8ce57316a8 100644 (file)
--- a/gencode.c
+++ b/gencode.c
 #include <sys/socket.h>
 #endif /* _WIN32 */
 
-/*
- * XXX - why was this included even on UNIX?
- */
-#ifdef __MINGW32__
-#include "ip6_misc.h"
-#endif
-
 #ifndef _WIN32
 
 #ifdef __NetBSD__
@@ -441,11 +434,10 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
         * a separate -lpthread, we might not want to do that.
         */
 #ifdef _WIN32
-       extern int wsockinit (void);
        static int done = 0;
 
        if (!done)
-               wsockinit();
+               pcap_wsockinit();
        done = 1;
        EnterCriticalSection(&g_PcapCompileCriticalSection);
 #endif