diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-15 17:45:16 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-15 17:45:16 (GMT) |
commit | 3940499ca8f6a74baa27ac83435c8bfae3ca42b7 (patch) | |
tree | 367bb5272ee21d784911f64f8187cd7d247824b1 /Modules/clinic/posixmodule.c.h | |
parent | 097a49e3e9b92ec379eb74fd021dc5f3c07fc625 (diff) | |
download | cpython-3940499ca8f6a74baa27ac83435c8bfae3ca42b7.zip cpython-3940499ca8f6a74baa27ac83435c8bfae3ca42b7.tar.gz cpython-3940499ca8f6a74baa27ac83435c8bfae3ca42b7.tar.bz2 |
Issue #28156: Export os.getpid() conditionally
Patch by Ed Schouten.
Diffstat (limited to 'Modules/clinic/posixmodule.c.h')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index fdb3970..72d7834 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -2349,6 +2349,8 @@ os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_GETGID) */ +#if defined(HAVE_GETPID) + PyDoc_STRVAR(os_getpid__doc__, "getpid($module, /)\n" "--\n" @@ -2367,6 +2369,8 @@ os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored)) return os_getpid_impl(module); } +#endif /* defined(HAVE_GETPID) */ + #if defined(HAVE_GETGROUPS) PyDoc_STRVAR(os_getgroups__doc__, @@ -5841,6 +5845,10 @@ exit: #define OS_GETGID_METHODDEF #endif /* !defined(OS_GETGID_METHODDEF) */ +#ifndef OS_GETPID_METHODDEF + #define OS_GETPID_METHODDEF +#endif /* !defined(OS_GETPID_METHODDEF) */ + #ifndef OS_GETGROUPS_METHODDEF #define OS_GETGROUPS_METHODDEF #endif /* !defined(OS_GETGROUPS_METHODDEF) */ @@ -6140,4 +6148,4 @@ exit: #ifndef OS_GETRANDOM_METHODDEF #define OS_GETRANDOM_METHODDEF #endif /* !defined(OS_GETRANDOM_METHODDEF) */ -/*[clinic end generated code: output=dfa6bc9d1f2db750 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=b9ed5703d2feb0d9 input=a9049054013a1b77]*/ |