]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/fileutl.cc
* apt-pkg/cdrom.cc:
[apt.git] / apt-pkg / contrib / fileutl.cc
index 119cd1974fbd28968291ba8eae6714deea548334..90e49cbfa3bb07d8409a1efc6c25471a5f781ffa 100644 (file)
@@ -1748,13 +1748,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;
 }
                                                                        /*}}}*/