mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Fixed platforms that do not have O_NOATIME option
This commit is contained in:
parent
8d6d7f9528
commit
816fa4d309
@ -365,7 +365,10 @@ void NBackup::open_database_scan()
|
||||
NULL);
|
||||
if (dbase == INVALID_HANDLE_VALUE)
|
||||
b_error::raise(uSvc, "Error (%d) opening database file: %s", GetLastError(), dbname.c_str());
|
||||
#else
|
||||
#else // WIN_NT
|
||||
#ifndef O_NOATIME
|
||||
#define O_NOATIME 0
|
||||
#endif // O_NOATIME
|
||||
dbase = open(dbname.c_str(), O_RDONLY | O_LARGEFILE | O_NOATIME | O_DIRECT);
|
||||
if (dbase < 0)
|
||||
b_error::raise(uSvc, "Error (%d) opening database file: %s", errno, dbname.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user