Subject: | Socket6 fails to compile on WinXP machines |
Hello,
First of all, thanks for your work in maintaining Socket6! I have a
Windows XP machine here and it will not compile because of the missing
definitions for inet_ntop and inet_pton. I talked with Jan Dubois on IRC
and he pointed me to an ancient patch floating around on the internet.
I'm using Strawberry Perl 5.12.1.0, FYI.
I tested it and Socket6 compiled on this machine! However, I haven't
done more in-depth testing to see if it *actually* works or not. I'll be
working on this issue from now on and trying to get everything working
nicely on MSWin32 platforms.
http://matrix.cpantesters.org/?dist=Socket6+0.23
As you can see, not one MSWin32 platform has a nice green color :(
I hope we can get a quick resolution on this seeing how the world is
starting to "wake" up regarding IPv6! Thanks again :)
--
~Apocalypse
Subject: | socket6.patch |
--- a/Makefile.PL 2008-11-01 12:01:10.000000000 -0700
+++ b/Makefile.PL 2010-04-20 17:22:43.007500600 -0700
@@ -74,6 +74,10 @@
open(IN, '<config.h.in') || die "Failed to open file 'config.h.in' [$!]";
open(OUT, '>config.h') || die "Failed to open file 'config.h' [$!]";
+ print(OUT "#ifndef NTDDI_LONGHORN\n");
+ print(OUT "# define NTDDI_LONGHORN 0x06000000\n");
+ print(OUT "#endif\n");
+
while (<IN>) {
if (/HAVE_PL_SV_UNDEF/) {
print(OUT "#define HAVE_PL_SV_UNDEF 1\n");