--- Params-Util-1.07/Makefile.PL.orig	2019-09-30 15:38:01.640045900 +0300
+++ Params-Util-1.07/Makefile.PL	2012-03-11 04:39:46.000000000 +0400
@@ -14,7 +14,7 @@
 unless ( defined $make_xs ) {
 	$make_xs = can_xs();
 }
-if ( $^O eq 'cygwin' and $make_xs == 1 and not /^-xs/ ) {
+if ( ($^O eq 'cygwin' or $^O eq 'msys') and $make_xs == 1 and not /^-xs/ ) {
 	# Cygwin goes bonkers breaking `` if using Params::Util XS version
 	# for no apparent reason.
 	$make_xs = 0;
