configure/utils: Add ipv6 support for mingw build

This commit is contained in:
Avuton Olrich
2011-12-10 18:37:45 -08:00
committed by Max Kellermann
parent 81e8c4bbff
commit ef39da5973
2 changed files with 9 additions and 1 deletions

View File

@@ -33,7 +33,11 @@
#include <pwd.h>
#endif
#ifdef HAVE_IPV6
#if HAVE_IPV6 && WIN32
#include <winsock2.h>
#endif
#if HAVE_IPV6 && ! WIN32
#include <sys/socket.h>
#endif