diff options
author | Yeojin Kim <yeojin.k@linecorp.com> | 2023-02-24 10:26:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 10:26:51 (GMT) |
commit | 347f7406df62b2bbe551685d72a466f27b951f8e (patch) | |
tree | 69a735ad9a2b75e54cabf3a02f9ca251d67c7213 /Modules | |
parent | 9f3ecd1aa3566947648a053bd9716ed67dd9a718 (diff) | |
download | cpython-347f7406df62b2bbe551685d72a466f27b951f8e.zip cpython-347f7406df62b2bbe551685d72a466f27b951f8e.tar.gz cpython-347f7406df62b2bbe551685d72a466f27b951f8e.tar.bz2 |
gh-81652: Add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants (gh-102191)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 8244202..a01e798 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1604,6 +1604,12 @@ mmap_exec(PyObject *module) // for stack usage (even on x86 arch) ADD_INT_MACRO(module, MAP_STACK); #endif +#ifdef MAP_ALIGNED_SUPER + ADD_INT_MACRO(module, MAP_ALIGNED_SUPER); +#endif +#ifdef MAP_CONCEAL + ADD_INT_MACRO(module, MAP_CONCEAL); +#endif if (PyModule_AddIntConstant(module, "PAGESIZE", (long)my_getpagesize()) < 0 ) { return -1; } |