mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 12:54:01 +02:00
fixed missing header file on Fedora
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user