mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 21:04:00 +02:00
fixed missing header file on Fedora
This commit is contained in:
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <io.h> // for open()
|
#include <io.h> // for open()
|
||||||
#include <sys/stat.h> // for open()
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <sys/stat.h> // for open()
|
||||||
#include "platform_util.h"
|
#include "platform_util.h"
|
||||||
#include "platform_common.h"
|
#include "platform_common.h"
|
||||||
#include "conversion.h"
|
#include "conversion.h"
|
||||||
@@ -134,7 +134,7 @@ inline bool acquire_file_lock(int hnd)
|
|||||||
return -1 != ::fcntl(hnd, F_SETLK, &lock);
|
return -1 != ::fcntl(hnd, F_SETLK, &lock);
|
||||||
#else
|
#else
|
||||||
HANDLE hFile = (HANDLE)_get_osfhandle(hnd);
|
HANDLE hFile = (HANDLE)_get_osfhandle(hnd);
|
||||||
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
|
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user