]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/fileutl.cc
merged from debian-sid
[apt.git] / apt-pkg / contrib / fileutl.cc
index 960616f33a29d837d070a6bc842bad5673162175..4c224337ebb4d1af86bd739249faa3d4d362477f 100644 (file)
@@ -1768,13 +1768,11 @@ bool FileFd::Close()
 /* */
 bool FileFd::Sync()
 {
-#ifdef _POSIX_SYNCHRONIZED_IO
    if (fsync(iFd) != 0)
    {
       Flags |= Fail;
       return _error->Errno("sync",_("Problem syncing the file"));
    }
-#endif
    return true;
 }
                                                                        /*}}}*/