summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-08-16 12:35:09 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-08-16 12:35:09 (GMT)
commit177b3f9982732bfbe7051b9d761882a7a744ee66 (patch)
treef464e8587ec9aa28130ae48ef6cfdcf2950d6ac6 /Modules/posixmodule.c
parent0db895e752fd2c1d71636e0630f423c1795f1bd1 (diff)
downloadcpython-177b3f9982732bfbe7051b9d761882a7a744ee66.zip
cpython-177b3f9982732bfbe7051b9d761882a7a744ee66.tar.gz
cpython-177b3f9982732bfbe7051b9d761882a7a744ee66.tar.bz2
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/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ccba5f9..ab3e9f0 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