Author: cazfi Date: Sun May 1 23:40:21 2016 New Revision: 32539 URL: http://svn.gna.org/viewcvs/freeciv?rev=32539&view=rev Log: Include winsock2.h first to AF_INET6 configure test.
See patch #7138 Modified: branches/S2_6/configure.ac Modified: branches/S2_6/configure.ac URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/configure.ac?rev=32539&r1=32538&r2=32539&view=diff ============================================================================== --- branches/S2_6/configure.ac (original) +++ branches/S2_6/configure.ac Sun May 1 23:40:21 2016 @@ -252,14 +252,14 @@ if test x$enable_ipv6 = xyes ; then AC_MSG_CHECKING([for AF_INET6]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#ifdef FREECIV_HAVE_WINSOCK2 +#include <winsock2.h> +#endif #ifdef FREECIV_HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef FREECIV_HAVE_SYS_SOCKET_H #include <sys/socket.h> -#endif -#ifdef FREECIV_HAVE_WINSOCK2 -#include <winsock2.h> #endif]], [[return AF_INET6;]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) enable_ipv6=no]) _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits