瀏覽代碼

Fix O_Flag_Bits.EXEC for non Linux platforms on posix/fcntl.

Isaac Andrade 1 年之前
父節點
當前提交
c1a67f37e6
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      core/sys/posix/fcntl.odin

+ 1 - 3
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),