diff options
| author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-01 20:59:24 +0000 |
|---|---|---|
| committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-01 20:59:24 +0000 |
| commit | 4787bb169228b1388f7c1cc2f65addffe9e3c647 (patch) | |
| tree | 6cff204b32d7948ab8b445aab320aab3819ec115 /libjava/gnu/classpath/natSystemProperties.cc | |
| parent | 175c55c0e7749087da85bf6831293407a4d0cba9 (diff) | |
| download | ppe42-gcc-4787bb169228b1388f7c1cc2f65addffe9e3c647.tar.gz ppe42-gcc-4787bb169228b1388f7c1cc2f65addffe9e3c647.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115864 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/classpath/natSystemProperties.cc')
| -rw-r--r-- | libjava/gnu/classpath/natSystemProperties.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |

