From 9217fcbb38887f2d0a25fb798d4df5fa9edcd797 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Wed, 1 Mar 2000 18:59:47 +0000 Subject: Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' when building a threaded Python. --- Modules/posixmodule.c | 4 ++-- 1 file 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); -- cgit v0.12