From 4787bb169228b1388f7c1cc2f65addffe9e3c647 Mon Sep 17 00:00:00 2001 From: andreast Date: Tue, 1 Aug 2006 20:59:24 +0000 Subject: 2006-08-01 Andreas Tobler * gnu/classpath/natSystemProperties.cc: Add additional check for getpwuid_r on _POSIX_PTHREAD_SEMANTICS. (SystemProperties::insertSystemProperties): Likewise. * java/io/natFilePosix.cc (File::performList): Add additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS. * java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115864 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/gnu/classpath/natSystemProperties.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/gnu/classpath/natSystemProperties.cc') diff --git a/libjava/gnu/classpath/natSystemProperties.cc b/libjava/gnu/classpath/natSystemProperties.cc index ad0ff1c1ed8..e78ca74e745 100644 --- a/libjava/gnu/classpath/natSystemProperties.cc +++ b/libjava/gnu/classpath/natSystemProperties.cc @@ -82,7 +82,7 @@ file_encoding () static const char *default_file_encoding = DEFAULT_FILE_ENCODING; -#if HAVE_GETPWUID_R +#if defined(HAVE_GETPWUID_R) && defined(_POSIX_PTHREAD_SEMANTICS) /* Use overload resolution to find out the signature of getpwuid_r. */ /* This is Posix getpwuid_r. */ @@ -223,7 +223,7 @@ gnu::classpath::SystemProperties::insertSystemProperties (java::util::Properties uid_t user_id = getuid (); struct passwd *pwd_entry; -#ifdef HAVE_GETPWUID_R +#if defined(HAVE_GETPWUID_R) && defined(_POSIX_PTHREAD_SEMANTICS) struct passwd pwd_r; size_t len_r = 200; char *buf_r = (char *) _Jv_AllocBytes (len_r); -- cgit v1.2.3