Browse Source

Fixed sockets ext build on win

pull/242/head
Anatoliy Belsky 14 years ago
parent
commit
bc9f8030c7
  1. 3
      ext/sockets/multicast.c
  2. 1
      ext/sockets/sockets.c

3
ext/sockets/multicast.c

@ -38,6 +38,9 @@
# define NTDDI_XP NTDDI_WINXP /* bug in SDK */
# include <IPHlpApi.h>
# undef NTDDI_XP
# if _WIN32_WINNT >= 0x0600
# define HAVE_IF_NAMETOINDEX 1
# endif
#else
#include <sys/socket.h>
#include <sys/ioctl.h>

1
ext/sockets/sockets.c

@ -57,6 +57,7 @@
# define h_errno WSAGetLastError()
# define set_errno(a) WSASetLastError(a)
# define close(a) closesocket(a)
# include <IPHlpApi.h>
# if _WIN32_WINNT >= 0x0600
# define HAVE_IF_NAMETOINDEX 1
# endif

Loading…
Cancel
Save