re GNATS libgcj/15 (_REENTRANT should be defined more consistently)

Fix for PR libgcj/15:
	* java/util/natGregorianCalendar.cc (_REENTRANT,
	_POSIX_PTHREAD_SEMANTICS): Don't define.
	* java/net/natInetAddress.cc (_REENTRANT): Don't define.
	* java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
	Don't define.
	* java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
	define.
	* configure: Rebuilt.
	* configure.in: If using POSIX threads, define _REENTRANT if
	needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
	GETHOSTBYNAME_R_NEEDS_REENTRANT.

From-SVN: r33318
This commit is contained in:
Tom Tromey 2000-04-21 20:38:43 +00:00 committed by Tom Tromey
parent b2dad0e372
commit 7234f9bc03
5 changed files with 16 additions and 28 deletions

View file

@ -10,13 +10,6 @@ details. */
#include <config.h>
#ifdef HAVE_GETPWUID_R
#define _POSIX_PTHREAD_SEMANTICS
#ifndef _REENTRANT
#define _REENTRANT
#endif
#endif
#include <string.h>
#include <time.h>
#include <stdlib.h>