diff options
Diffstat (limited to 'ext/sockets/sockets.c')
| -rw-r--r-- | ext/sockets/sockets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index d6ee418510..f29dab68fc 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -57,7 +57,8 @@ # define h_errno WSAGetLastError() # define set_errno(a) WSASetLastError(a) # define close(a) closesocket(a) -# if _WIN32_WINNT >= 0x0600 && SOCKETS_ENABLE_VISTA_API +# include <IPHlpApi.h> +# if _WIN32_WINNT >= 0x0600 # define HAVE_IF_NAMETOINDEX 1 # endif #else |
