diff options
author | Ethan Steinberg <ethan.steinberg@gmail.com> | 2020-05-26 21:42:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 21:42:18 (GMT) |
commit | 21fda91f8da96406e6a912f7c312424209c19bef (patch) | |
tree | 5b2caa6d631e4dfbbdfbf5fda85d67803e3df674 /Modules | |
parent | b45af1a5691e83b86321fc52d173f66cf891ce5f (diff) | |
download | cpython-21fda91f8da96406e6a912f7c312424209c19bef.zip cpython-21fda91f8da96406e6a912f7c312424209c19bef.tar.gz cpython-21fda91f8da96406e6a912f7c312424209c19bef.tar.bz2 |
bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)
MAP_POPULATE constant has now been added to the list of exported
mmap module flags.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index a3e22d0..8a60db1 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1574,6 +1574,9 @@ PyInit_mmap(void) setint(dict, "MAP_ANON", MAP_ANONYMOUS); setint(dict, "MAP_ANONYMOUS", MAP_ANONYMOUS); #endif +#ifdef MAP_POPULATE + setint(dict, "MAP_POPULATE", MAP_POPULATE); +#endif setint(dict, "PAGESIZE", (long)my_getpagesize()); |