Opened 14 years ago
Closed 13 years ago
#2593 closed Bugs (invalid)
asio missing IPPROTO_IPV6 for win2k and older targets
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | asio |
Version: | Boost 1.37.0 | Severity: | Problem |
Keywords: | IPPROTO_IPV6 | Cc: |
Description
When building against Vista SDK headers, if the windows version target _WIN32_WINNT is defined to be 0x0500 (win2k) or less, IPPROTO_IPV6 is not included in the enum in ws2def.h, giving the error:
boost/asio/detail/socket_ops.hpp(407) : error C2065: 'IPPROTO_IPV6' : undeclared identifier
Since this is the only header which references IPPROTO_IPV6, a possible workaround would be to stick at the top of the header:
When target is Windows 2000 or earlier, Microsoft's ws2def.h does not enumerate IPPROTO_IPV6.
defined(CYGWIN) |
# if defined(_WIN32_WINNT) && (_WIN32_WINNT <= 0x0500) # define IPPROTO_IPV6 41 # endif _WIN32_WINNT