# Windows stuff
AC_CHECK_DECL(_WIN32)
AM_CONDITIONAL([WINDOWS], [ test "x$ac_cv_have_decl__WIN32" = "xyes" ])
+if test "x$ac_cv_have_decl__WIN32" = "xyes" ; then
+ CPPFLAGS="$CPPFLAGS -I`pwd`/src/compat/windows/include"
+fi
AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst],
AC_DEFINE([HAVE_IPI_SPEC_DST], [], [struct in_pktinfo has ipi_spec_dst member]),
[],
- [[#include <ws2tcpip.h>]])
+ [[#include <netinet/in.h>]])
# -fstack-protector
AC_ARG_ENABLE([stack-protector],
# Checks for library functions.
AC_FUNC_SELECT_ARGTYPES
-AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy])
+AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy fcntl])
AC_FUNC_CHOWN
AC_FUNC_STAT