Skip to content

Commit a8f12d6

Browse files
committed
Fix gstat build on Windows and also Android/MacOS builds
1 parent 9649388 commit a8f12d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/jrd/os/posix/unix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void PIO_extend(thread_db* tdbb, jrd_file* file, const ULONG extPages, const USH
350350
unix_error("fallocate_retry", file, isc_io_write_err);
351351
}
352352
#else
353-
main_file->fil_flags |= FIL_no_fast_extend;
353+
file->fil_flags |= FIL_no_fast_extend;
354354
#endif // fallocate present
355355

356356
// not implemented

src/utilities/gstat/dba.epp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,18 +1797,18 @@ static dba_fil* db_open(const char* file_name, USHORT file_length)
17971797

17981798
const auto file = (dba_fil*) alloc(sizeof(dba_fil) + file_length + 1);
17991799

1800-
strcpy(fil->fil_string, file_name);
1801-
fil->fil_length = file_length;
1800+
strcpy(file->fil_string, file_name);
1801+
file->fil_length = file_length;
18021802

1803-
fil->fil_desc = CreateFile( file_name,
1803+
file->fil_desc = CreateFile(file_name,
18041804
GENERIC_READ,
18051805
FILE_SHARE_READ | FILE_SHARE_WRITE,
18061806
NULL,
18071807
OPEN_EXISTING,
18081808
FILE_ATTRIBUTE_NORMAL,
18091809
0);
18101810

1811-
if (fil->fil_desc == INVALID_HANDLE_VALUE)
1811+
if (file->fil_desc == INVALID_HANDLE_VALUE)
18121812
{
18131813
tddba->uSvc->getStatusAccessor().setServiceStatus(GSTAT_MSG_FAC, 29, SafeArg() << file_name);
18141814
// msg 29: Can't open database file %s

0 commit comments

Comments
 (0)