--- a/apr/apr-1.4.6-msys2.patch
+++ b/apr/apr-1.4.6-msys2.patch
@@ -707,13 +707,10 @@
 diff -Naur apr-1.4.6-orig/test/testdso.c apr-1.4.6/test/testdso.c
 --- apr-1.4.6-orig/test/testdso.c	2010-01-04 01:36:07.000000000 +0000
 +++ apr-1.4.6/test/testdso.c	2013-04-25 16:31:46.088867200 +0000
-@@ -35,6 +35,12 @@
- # define MOD_NAME "mod_test.so"
- #elif defined(WIN32)
- # define MOD_NAME TESTBINPATH "mod_test.dll"
-+#elif defined(CYGWIN)
-+# define MOD_NAME ".libs/mod_test.dll"
-+# define LIB_NAME ".libs/cygmod_test.dll"
+@@ -38,6 +38,9 @@
+ #elif defined(CYGWIN)
+ # define MOD_NAME ".libs/mod_test.dll"
+ # define LIB_NAME ".libs/cygmod_test.dll"
 +#elif defined(MSYS)
 +# define MOD_NAME ".libs/mod_test.dll"
 +# define LIB_NAME ".libs/msys-mod_test.dll"