aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorIsaac Andrade <andradei@proton.me>2024-09-21 21:37:41 -0600
committerIsaac Andrade <andradei@proton.me>2024-09-21 21:37:41 -0600
commitc1a67f37e62d5f928f47eb480c33f533d3160041 (patch)
treee7a47d299368f06b101f2b4cbd88d046017820dd /core/sys
parentcc60725eda4d3a9d63bf64a8d92a19526bde75f0 (diff)
Fix O_Flag_Bits.EXEC for non Linux platforms on posix/fcntl.
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/posix/fcntl.odin4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/sys/posix/fcntl.odin b/core/sys/posix/fcntl.odin
index 32c124168..be33739e4 100644
--- a/core/sys/posix/fcntl.odin
+++ b/core/sys/posix/fcntl.odin
@@ -181,9 +181,7 @@ when ODIN_OS == .Linux {
// RSYNC = O_RSYNC,
// Execute only.
- // NOTE: use with `posix.O_ENTER + { .OTHER_FLAG, .OTHER_FLAG }`, unfortunately can't be in
- // this bit set enum because it is 0 on some platforms and a value on others.
- EXEC = O_EXEC,
+ EXEC = log2(O_EXEC),
// Reading and writing.
RDWR = log2(O_RDWR),