actually use HAVE_FDATASYNC

This commit is contained in:
Michael Gehring committed 2016-02-08 15:09:43 +01:00
1 parent 0f56b68eac
commit 618e504d30
3 files changed
+12

No files matched your search

+4
View File
@@ -954,7 +954,11 @@ main(int argc, char **argv)
*/
binpkg = xbps_xasprintf("%s.%s.xbps", pkgver, arch);
#ifdef HAVE_FDATASYNC
(void)fdatasync(pkg_fd);
#else
(void)fsync(pkg_fd);
#endif
myumask = umask(0);
(void)umask(myumask);