directory flushing doesn't work in windows

This commit is contained in:
Glenn Maynard
2004-04-19 21:00:18 +00:00
parent 07629d0eb4
commit 79ac1ae2c6
+2
View File
@@ -203,6 +203,7 @@ bool RageFileObjDirect::FinalFlush()
return false;
}
#if !defined(WIN32)
/* Wait for the directory to be flushed. */
int dirfd = open( Dirname(path), O_RDONLY );
if( dirfd == -1 )
@@ -221,6 +222,7 @@ bool RageFileObjDirect::FinalFlush()
}
close( dirfd );
#endif
return true;
}