Skip to content

Commit 9c87830

Browse files
author
Alexander Zhdanov
committed
Try to fix macos build for tablespaces
1 parent b3ffc01 commit 9c87830

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/jrd/os/posix/unix.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,17 @@ static SLONG pwrite(int fd, SCHAR* buf, SLONG nbytes, SLONG offset)
11961196
#endif // !(HAVE_PREAD && HAVE_PWRITE)
11971197

11981198

1199+
bool PIO_file_exists(const Firebird::PathName& fileName)
1200+
{
1201+
const int fd = openFile(fileName.c_str(), false, false, true);
1202+
if (fd == -1)
1203+
return false;
1204+
1205+
close(fd);
1206+
return true;
1207+
}
1208+
1209+
11991210
#ifdef SUPPORT_RAW_DEVICES
12001211
int PIO_unlink(const PathName& file_name)
12011212
{
@@ -1235,17 +1246,6 @@ bool PIO_on_raw_device(const PathName& file_name)
12351246
}
12361247

12371248

1238-
bool PIO_file_exists(const Firebird::PathName& fileName)
1239-
{
1240-
const int fd = openFile(fileName.c_str(), false, false, true);
1241-
if (fd == -1)
1242-
return false;
1243-
1244-
close(fd);
1245-
return true;
1246-
}
1247-
1248-
12491249
static bool raw_devices_validate_database(int desc, const PathName& file_name)
12501250
{
12511251
/**************************************

0 commit comments

Comments
 (0)