Skip to content

Commit

Permalink
configure: Define _WIN32_WINNT when compiling with MinGW
Browse files Browse the repository at this point in the history
Request NT 6 API to expose AI_ADDRCONFIG in WinSock2.

Ref: axel-download-accelerator#313
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
  • Loading branch information
ismaell committed Oct 2, 2020
1 parent b3d2c12 commit bd8b313
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ hpux*)
LDFLAGS="$LDFLAGS -L/usr/local/lib/hpux32"
fi
;;
*-mingw32)
AC_DEFINE([_WIN32_WINNT], [0x0600],
[Request NT 6 API to expose AI_ADDRCONFIG in WinSock2])
;;
esac

# BSD vs GNU date
Expand Down

0 comments on commit bd8b313

Please sign in to comment.