-From b973680d889992c7e9399aa9bf7d845d3d081f77 Mon Sep 17 00:00:00 2001
+From 7db79bc7aacefb9b934ed8fe1d47f396bbcabbe5 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
+
 	sync_dbs = alpm_get_syncdbs(config->handle);
 
 	if(config->op_s_sync) {
-- 
2.0.0


 		{"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..dd8e794 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -904,6 +904,27 @@ int pacman_sync(alpm_list_t *targets)
 		return ret;
 	}
 
+#if defined(__MSYS__)
