[Winpcap-users] [PATCH] mingw build

Alon Bar-Lev alon.barlev at gmail.com
Tue Sep 14 09:17:57 PDT 2010


Hello,

I needed winpcap compiled with mingw-w64 compiler cross compiled on Linux.
Compiles using mingw-w64 in 32bit and 64bit, not sure it works though,
but the fixes are unrelated and trivial.

Attached is a patch to fix several issues:

1. File name casing - there are reference to files in wrong casing.

2. Do not use '\' in #include, use '/'.

3. Recent mingw headers have ntddndis.h, no need for ddk for this.

4. grammar.y - any idea why we need pcap_parse if yacc defines it
anyway instead of yyparse?

5. yacc does not accept -y argument.

6. Added -Wl,--allow-multiple-definition to remove duplicate symbol
for getaddrinfo and freeaddrinfo which exists in code and in winsock
library. I am not sure the approach of overriding a symbol is correct.

7. Minor modification of (char*)A += code.

Regards,
Alon Bar-Lev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winpcap-4.1.2-mingw.patch
Type: application/octet-stream
Size: 8239 bytes
Desc: not available
Url : http://www.winpcap.org/pipermail/winpcap-users/attachments/20100914/e53b2412/attachment.obj 


More information about the Winpcap-users mailing list