Kaydet (Commit) 9caf77a4 authored tarafından Guido van Rossum's avatar Guido van Rossum

Put definition of _REENTRANT in config.h

üst cee555bd
......@@ -41,12 +41,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define UsingSharedLibs
#endif
#ifdef WITH_THREAD
/* This turns errno in a thread-safe function on Solaris.
Wonder what it will break though :-( */
#define _REENTRANT
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
......
......@@ -26,10 +26,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "config.h"
#endif
#ifdef WITH_THREAD
#define _REENTRANT
#endif
/* Convert a possibly signed character to a nonnegative int */
/* XXX This assumes characters are 8 bits wide */
#ifdef __CHAR_UNSIGNED__
......
......@@ -96,6 +96,9 @@
/* Define if you have POSIX threads */
#undef _POSIX_THREADS
/* Define to force use of thread-safe errno, h_errno, and other functions */
#undef _REENTRANT
/* Define if setpgrp() must be called as setpgrp(0, 0). */
#undef SETPGRP_HAVE_ARG
......
This diff is collapsed.
......@@ -247,6 +247,7 @@ AC_MSG_RESULT($withval)
if test -d "$withval"
then LIBS="$LIBS -L$withval"
fi
AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
......
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