Skip to content

Commit 567cb34

Browse files
committed
Merge pull request #699 from CyberShadow/fcntl64
core.sys.posix.fcntl: Fix F_GETLK/F_SETLK/F_SETLKW on Linux/X86_64
2 parents 5d46da6 + 5d80d66 commit 567cb34

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/core/sys/posix/fcntl.d

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ version( linux )
8080
enum F_SETFD = 2;
8181
enum F_GETFL = 3;
8282
enum F_SETFL = 4;
83+
version(X86_64)
84+
{
85+
static assert(off_t.sizeof == 8);
86+
enum F_GETLK = 5;
87+
enum F_SETLK = 6;
88+
enum F_SETLKW = 7;
89+
}
90+
else
8391
static if( __USE_FILE_OFFSET64 )
8492
{
8593
enum F_GETLK = 12;

0 commit comments

Comments
 (0)