  		{"search",     no_argument,       0, OP_SEARCH},
  		{"unrequired", no_argument,       0, OP_UNREQUIRED},
 diff --git a/src/pacman/sync.c b/src/pacman/sync.c
-index bf19d57..2d4008a 100644
+index bf19d57..dd8e794 100644
 --- a/src/pacman/sync.c
 +++ b/src/pacman/sync.c
-@@ -908,6 +908,27 @@ int pacman_sync(alpm_list_t *targets)
- 		return 1;
+@@ -904,6 +904,27 @@ int pacman_sync(alpm_list_t *targets)
+ 		return ret;
  	}
  
 +#if defined(__MSYS__)

From b973680d889992c7e9399aa9bf7d845d3d081f77 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Sun, 15 Jun 2014 16:11:54 +0100
Subject: [PATCH 2/2] Add util-msys2.{c,h} and rebase-db-msys2.{c,}

+	}
+#endif
+
 	if(check_syncdbs(1, 0)) {
 		return 1;
 	}
-- 
2.0.0

