aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/classpath
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2006-08-01 22:59:24 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2006-08-01 22:59:24 +0200
commitd2b815074b745370cc5ebb541dcf41b52ea8c648 (patch)
tree6cff204b32d7948ab8b445aab320aab3819ec115 /libjava/gnu/classpath
parent9beafc83cabd13b4ad5783209db8f32998363e08 (diff)
downloadgcc-d2b815074b745370cc5ebb541dcf41b52ea8c648.zip
gcc-d2b815074b745370cc5ebb541dcf41b52ea8c648.tar.gz
gcc-d2b815074b745370cc5ebb541dcf41b52ea8c648.tar.bz2
natSystemProperties.cc: Add additional check for getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
2006-08-01 Andreas Tobler <a.tobler@schweiz.ch> * 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. From-SVN: r115864
Diffstat (limited to 'libjava/gnu/classpath')
-rw-r--r--libjava/gnu/classpath/natSystemProperties.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/classpath/natSystemProperties.cc b/libjava/gnu/classpath/natSystemProperties.cc
index ad0ff1c..e78ca74 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);