From b24f59ab5ac96a67a016dc921687b0feae9bbf94 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 6 Mar 2014 18:41:59 +0100 Subject: [PATCH 1/1] Detect Windows operating system in ./configure We should not rely on `uname -s` if we ever want cross-compiling to work, so detect _WIN32. Signed-off-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 7b1d79a4..63aa02dd 100755 --- a/configure +++ b/configure @@ -184,6 +184,8 @@ elif check_define __OpenBSD__ ; then elif check_define __sun__ ; then targetos='SunOS' CFLAGS="$CFLAGS -D_REENTRANT" +elif check_define _WIN32 ; then + targetos='CYGWIN' else targetos=`uname -s` fi -- 2.25.1