actually use HAVE_FDATASYNC

This commit is contained in:
Michael Gehring
2016-01-26 14:21:40 +01:00
parent 0f56b68eac
commit 618e504d30
3 changed files with 12 additions and 0 deletions

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);