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:
@@ -1,6 +1,6 @@
|
||||
// natFile.cc - Native part of File class.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -21,10 +21,6 @@ details. */
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_DIRENT_H
|
||||
#define _POSIX_PTHREAD_SEMANTICS
|
||||
#ifndef _REENTRANT
|
||||
# define _REENTRANT
|
||||
#endif
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user