Commit 89589c90 authored by Mark Dickinson's avatar Mark Dickinson

Don't assume that os.confstr_names exists.

parent 7cf03891
......@@ -17,7 +17,8 @@ from test import support
# and unmaintained) linuxthreads threading library. There's an issue
# when combining linuxthreads with a failed execv call: see
# http://bugs.python.org/issue4970.
if "CS_GNU_LIBPTHREAD_VERSION" in os.confstr_names:
if (hasattr(os, "confstr_names") and
"CS_GNU_LIBPTHREAD_VERSION" in os.confstr_names):
libpthread = os.confstr("CS_GNU_LIBPTHREAD_VERSION")
USING_LINUXTHREADS= libpthread.startswith("linuxthreads")
else:
......
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