Commit dcfac5a76c1ab73f9e8382e3a3c63509413d5d4a

Authored by Stéphane Raimbault
1 parent 706fa6b2

Fix compilation with MinGW (GCC 4.8.1) under Win7 (closes #163)

Thank you MarjanTomas and SwissKnife.
Showing 1 changed file with 3 additions and 0 deletions
configure.ac
... ... @@ -100,6 +100,9 @@ AC_CHECK_DECLS([__CYGWIN__])
100 100 AC_FUNC_FORK
101 101 AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa memset select socket strerror strlcpy])
102 102  
  103 +# Required for MinGW with GCC v4.8.1 on Win7
  104 +AC_DEFINE(WINVER, 0x0501, _)
  105 +
103 106 # Required for getaddrinfo (TCP PI - IPv6)
104 107 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
105 108 if test "x$HAVE_WINSOCK2_H" = "xyes"; then
... ...