2022-01-17 20:12:29 +00:00
|
|
|
From 602c9c669e8270f51b8c9c07c3b8840d3cc5d5e4 Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
2022-01-06 15:11:38 +00:00
|
|
|
Date: Thu, 6 Jan 2022 03:19:12 +0000
|
|
|
|
Subject: [PATCH] dlang: libdruntime: define fcntl.h constants for mips64
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
libphobos/libdruntime/core/sys/posix/fcntl.d | 15 +++++++++++++++
|
2022-01-06 15:11:38 +00:00
|
|
|
1 file changed, 15 insertions(+)
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
diff --git a/libphobos/libdruntime/core/sys/posix/fcntl.d b/libphobos/libdruntime/core/sys/posix/fcntl.d
|
2021-11-25 09:09:10 +00:00
|
|
|
index 59df921ba41..9ee9f943948 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/libphobos/libdruntime/core/sys/posix/fcntl.d
|
|
|
|
+++ b/libphobos/libdruntime/core/sys/posix/fcntl.d
|
2021-11-25 09:09:10 +00:00
|
|
|
@@ -871,6 +871,21 @@ else version (CRuntime_Musl)
|
2020-08-21 10:18:02 +00:00
|
|
|
F_SETLKW = 7,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ else version (MIPS_Any)
|
|
|
|
+ {
|
|
|
|
+ enum
|
|
|
|
+ {
|
|
|
|
+ O_DIRECTORY = 0x010000, // octal 0200000
|
|
|
|
+ O_NOFOLLOW = 0x020000, // octal 0400000
|
|
|
|
+ O_DIRECT = 0x008000, // octal 0100000
|
|
|
|
+ O_LARGEFILE = 0x002000, // octal 0020000
|
|
|
|
+ O_TMPFILE = 0x410000, // octal 020200000
|
|
|
|
+
|
|
|
|
+ F_GETLK = 33,
|
|
|
|
+ F_SETLK = 34,
|
|
|
|
+ F_SETLKW = 35,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
else
|
|
|
|
static assert(0, "Platform not supported");
|
|
|
|
|
|
|
|
--
|
2022-01-06 15:11:38 +00:00
|
|
|
2.34.1
|
2020-08-21 10:18:02 +00:00
|
|
|
|