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
This commit is contained in:
parent
9beafc83ca
commit
d2b815074b
4 changed files with 18 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue