diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-16 14:35:09 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-16 14:35:09 +0200 |
commit | bd528505d248b48ef92e6d637780fe2566327199 (patch) | |
tree | bec06541f2fa6f76a332bd35625516dddd262d2b /Modules | |
parent | 7652686ce0ab99075f569c51f5a2299dd48be826 (diff) | |
download | cpython-bd528505d248b48ef92e6d637780fe2566327199.tar.gz |
Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel
3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ccba5f9981..ab3e9f0b03 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -11245,6 +11245,9 @@ all_ins(PyObject *m) #ifdef O_TTY_INIT if (PyModule_AddIntMacro(m, O_TTY_INIT)) return -1; #endif +#ifdef O_TMPFILE + if (PyModule_AddIntMacro(m, O_TMPFILE)) return -1; +#endif #ifdef PRIO_PROCESS if (PyModule_AddIntMacro(m, PRIO_PROCESS)) return -1; #endif |