summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-25 11:38:44 +0000
committerRichard Jones <rjones@redhat.com>2009-11-25 16:28:25 +0000
commit34d5df70d858e02ae6adc6537e1a6ea2df938238 (patch)
treebb2043889e150ec1b7e6f1ccf6e358d8e364539e /daemon
parent62d6ae454f1f75b2a8dc29e681586db73884cd08 (diff)
downloadlibguestfs-34d5df70d858e02ae6adc6537e1a6ea2df938238.tar.gz
libguestfs-34d5df70d858e02ae6adc6537e1a6ea2df938238.tar.xz
libguestfs-34d5df70d858e02ae6adc6537e1a6ea2df938238.zip
daemon/Windows: Define _WIN32_WINNT when compiling on Windows.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/configure.ac b/daemon/configure.ac
index c6d9d98f..54d2a4ca 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