diff -r 38c0cde828f6 -r 0280c4396fc2 configure.ac --- a/configure.ac Thu Apr 17 10:30:03 2014 +0200 +++ b/configure.ac Thu Apr 17 10:46:00 2014 +0200 @@ -246,7 +246,11 @@ ], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include - #include + #ifdef _WIN32 + # include + #else + # include + #endif int accept(int, struct sockaddr *, size_t *); ]], [[]])], [ AC_MSG_RESULT(size_t) @@ -261,13 +265,25 @@ AC_CHECK_MEMBER([struct sockaddr.sa_len], [AC_DEFINE([HAVE_STRUCT_SOCKADDR_SA_LEN],[1], [Define if struct sockaddr has an sa_len member])],[:], - [#include ]) + [ + #ifdef _WIN32 + # include + #else + # include + #endif + ]) dnl Check for v6-only sockets AC_CHECK_DECL([IPV6_V6ONLY], [AC_DEFINE([HAVE_IPV6_V6ONLY],[1], [Define if the IPV6_V6ONLY setsockopt option exists])], - [], [#include ]) + [], [ + #ifdef _WIN32 + # include + #else + # include + #endif + ]) dnl to prevent the g_stat()/g_unlink() crash, dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac