--- ./update-mime-database.c.orig	2014-03-31 09:24:23.000000000 -0500
+++ ./update-mime-database.c	2015-04-26 13:41:07.095993970 -0500
@@ -950,7 +950,7 @@
 
 	new_name = g_strndup(pathname, len - 4);
 
-#ifdef HAVE_FDATASYNC
+/* #ifdef HAVE_FDATASYNC
 	fd = open(pathname, O_RDWR);
 	if (fd == -1)
 	{
@@ -967,7 +967,7 @@
 		set_error_from_errno(error);
 		goto out;
 	}
-#endif
+#endif */
 
 #ifdef _WIN32
 	/* we need to remove the old file first! */
