--- a/qtbase/bin/syncqt.pl
+++ b/qtbase/bin/syncqt.pl
@@ -54,7 +54,7 @@
 use warnings;
 use English qw(-no_match_vars );
 
-my $normalizePath_fixDrive = ($^O eq "msys" ? 1 : 0);
+my $normalizePath_fixDrive = ($^O eq "cygwin" ? 1 : 0);
 
 ######################################################################
 # Syntax:  normalizePath(\$path)
--- a/qtbase/configure
+++ b/qtbase/configure
@@ -305,7 +305,7 @@
 if [ -d /System/Library/Frameworks/Cocoa.framework ]; then
     BUILD_ON_MAC=yes
 fi
-if [ "$OSTYPE" = "msys" ]; then
+if [ "$OSTYPE" = "cygwin" ]; then
     relpath=`(cd "$relpath"; pwd -W)`
     outpath=`pwd -W`
 fi
