X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fconfigure.ac;h=54d2a4ca630a1dbd7ad2f18433e7b6aec4f3d3b4;hp=c6d9d98f799378096effabe85fa4e43e1b4a0dfb;hb=34d5df70d858e02ae6adc6537e1a6ea2df938238;hpb=62d6ae454f1f75b2a8dc29e681586db73884cd08 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