fixed missing header file on Fedora

This commit is contained in:
Mark Vejvoda 2010-06-08 14:13:33 +00:00
parent 4fd75e5d7d
commit 8d62198ca3

View File

@ -22,9 +22,9 @@
#ifdef WIN32
#include <io.h> // for open()
#include <sys/stat.h> // for open()
#endif
#include <sys/stat.h> // for open()
#include "platform_util.h"
#include "platform_common.h"
#include "conversion.h"
@ -134,7 +134,7 @@ inline bool acquire_file_lock(int hnd)
return -1 != ::fcntl(hnd, F_SETLK, &lock);
#else
HANDLE hFile = (HANDLE)_get_osfhandle(hnd);
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
#endif
}