Commit 1a918333 authored by Greg Ward's avatar Greg Ward

Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' when

building a threaded Python.
parent 1d3686be
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment