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.
This commit is contained in:
Christian Heimes 2013-08-16 14:35:09 +02:00
parent 0db895e752
commit 177b3f9982
3 changed files with 7 additions and 0 deletions

View file

@ -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