Skip to content

Commit 0f0dd22

Browse files
committed
Use correct value for MAP_ANONYMOUS on MacOS
1 parent bdceaf6 commit 0f0dd22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PosixSupportLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public abstract class PosixSupportLibrary extends Library {
8989
public static final int S_IFLNK = 0120000; /* Symbolic link. */
9090
public static final int S_IFSOCK = 0140000; /* Socket. */
9191

92-
public static final int MAP_ANONYMOUS = getPythonOSName().equals(PLATFORM_DARWIN) ? 0x10 : 0x20;
92+
public static final int MAP_ANONYMOUS = getPythonOSName().equals(PLATFORM_DARWIN) ? 4096 : 0x20;
9393

9494
// Constants for accessing the fields of the fstat result:
9595
// TODO: have these in posix.c (maybe posix.h) and extract them along with other constants

0 commit comments

Comments
 (0)