X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fconfigure.ac;h=54d2a4ca630a1dbd7ad2f18433e7b6aec4f3d3b4;hb=a9519654032d2f09e76870d5d04dae2dff752c5b;hp=c6d9d98f799378096effabe85fa4e43e1b4a0dfb;hpb=2d9953097b6d3b71122d444a4550047e97aee009;p=libguestfs.git diff --git a/daemon/configure.ac b/daemon/configure.ac index c6d9d98..54d2a4c 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -124,6 +124,12 @@ test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) AM_PROG_CC_C_O +dnl If the host is Windows, define _WIN32_WINNT to a suitable value. +AC_CANONICAL_HOST +case $host in + *mingw*|*cygwin*|*win32*) CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0500" ;; +esac + dnl Check support for 64 bit file offsets. AC_SYS_LARGEFILE