Skip to content

Commit d62d364

Browse files
committed
FileSystem: open64() is for large file, O_LARGEFILE is redundant
1 parent 6df1517 commit d62d364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/FileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ inline int my_open(Str::StringRef path, openMode_t mode)
199199
if (fd == -1)
200200
CloseHandle(h);
201201
#elif defined(DAEMON_OPEN64)
202-
int fd = open64(path.c_str(), modes[mode_] | O_CLOEXEC | O_LARGEFILE, 0666);
202+
int fd = open64(path.c_str(), modes[mode_] | O_CLOEXEC, 0666);
203203
#else
204204
// This doesn't actually work in Native Client, but it's not used anyways.
205205
// O_CLOEXEC is supported in macOS from 10.7 onwards.

0 commit comments

Comments
 (0)