diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 77c0ba1..4e50f1b 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -649,7 +649,7 @@ posix_ctermid(self, args) if (!PyArg_ParseTuple(args, ":ctermid")) return NULL; -#ifdef HAVE_CTERMID_R +#if defined(HAVE_CTERMID_R) && defined(WITH_THREAD) ret = ctermid_r(buffer); #else ret = ctermid(buffer); @@ -3342,7 +3342,7 @@ posix_tmpnam(self, args) if (!PyArg_ParseTuple(args, ":tmpnam")) return NULL; -#ifdef HAVE_TMPNAM_R +#if defined(HAVE_TMPNAM_R) && defined(WITH_THREAD) name = tmpnam_r(buffer); #else name = tmpnam(buffer); |