diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index 95feb72658..f40a624c9a 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -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; }