diff options
-rw-r--r-- | README.win32 | 13 | ||||
-rw-r--r-- | pod/perldelta.pod | 2 | ||||
-rw-r--r-- | win32/include/sys/socket.h | 12 |
3 files changed, 14 insertions, 13 deletions
diff --git a/README.win32 b/README.win32 index 78cd73c153..cf387a735f 100644 --- a/README.win32 +++ b/README.win32 @@ -40,18 +40,10 @@ system). Currently, this port is capable of using one of the following compilers on the Intel x86 architecture: Borland C++ version 5.02 or later - Microsoft Visual C++ version 6.0 or later (*) + Microsoft Visual C++ version 6.0 or later Gcc by mingw.org gcc version 3.2 or later Gcc by mingw-w64.sf.net gcc version 4.4.3 or later -(*) NOTE: Support for Visual C++ 2010 is not yet complete. This latest -version of VC++ introduces some new C<errno.h> constants which conflict -with Perl's current setting of them to match the corresponding WSAE* -constants' values. Until this issue is resolved you will see several test -failures (in F<cpan/autodie/t/flock.t>, F<dist/IO/t/io_multihomed.t >, -F<dist/Net-Ping/t/450_service.t> and F<dist/Net-Ping/t/510_ping_udp.t>) -and experience other problems in code involving sockets. - Note that the last two of these are actually competing projects both delivering complete gcc toolchain for MS Windows: @@ -412,9 +404,6 @@ the testsuite (many tests will be skipped). There should be no test failures. -(If you're using VC++ 2010 then you will currently see several test failures, -as noted in the list of supported compilers above.) - Some test failures may occur if you use a command shell other than the native "cmd.exe", or if you are building from a path that contains spaces. So don't do that. diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 051796eb8d..e51a79f488 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -440,7 +440,7 @@ L</Platform Support> section, instead. =item * -XXX +Compilation on Windows with Visual Studio 2010 is now supported. =back diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h index 53abf0cd21..3b92b13d54 100644 --- a/win32/include/sys/socket.h +++ b/win32/include/sys/socket.h @@ -82,6 +82,18 @@ extern "C" { #endif +#undef ENOTSOCK +#define ENOTSOCK WSAENOTSOCK + +#undef ECONNABORTED +#define ECONNABORTED WSAECONNABORTED + +#undef ECONNRESET +#define ECONNRESET WSAECONNRESET + +#undef EAFNOSUPPORT +#define EAFNOSUPPORT WSAEAFNOSUPPORT + #ifdef USE_SOCKETS_AS_HANDLES #ifndef PERL_FD_SETSIZE |