Author: cazfi Date: Sun Feb 7 14:00:58 2016 New Revision: 31810 URL: http://svn.gna.org/viewcvs/freeciv?rev=31810&view=rev Log: Include winsock2.h to civserver.c before windows.h
See bug #24387 Modified: branches/S2_5/server/civserver.c Modified: branches/S2_5/server/civserver.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/civserver.c?rev=31810&r1=31809&r2=31810&view=diff ============================================================================== --- branches/S2_5/server/civserver.c (original) +++ branches/S2_5/server/civserver.c Sun Feb 7 14:00:58 2016 @@ -32,6 +32,13 @@ #include <Dialogs.h> #endif +#ifdef HAVE_WINSOCK +#ifdef HAVE_WINSOCK2 +#include <winsock2.h> +#else /* HAVE_WINSOCK2 */ +#include <winsock.h> +#endif /* HAVE_WINSOCK2 */ +#endif /* HAVE_WINSOCK */ #ifdef WIN32_NATIVE #include <windows.h> #endif _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits