bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)

This commit is contained in:
Dong-hee Na 2019-10-28 16:31:15 +09:00 committed by Serhiy Storchaka
parent 85c6f8c65c
commit 3bfc8e0fcc
4 changed files with 22 additions and 1 deletions

View file

@ -495,6 +495,15 @@ all_ins(PyObject* m)
#ifdef F_SETLKW
if (PyModule_AddIntMacro(m, F_SETLKW)) return -1;
#endif
#ifdef F_OFD_GETLK
if (PyModule_AddIntMacro(m, F_OFD_GETLK)) return -1;
#endif
#ifdef F_OFD_SETLK
if (PyModule_AddIntMacro(m, F_OFD_SETLK)) return -1;
#endif
#ifdef F_OFD_SETLKW
if (PyModule_AddIntMacro(m, F_OFD_SETLKW)) return -1;
#endif
#ifdef F_GETOWN
if (PyModule_AddIntMacro(m, F_GETOWN)) return -1;
#endif