This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2006-04-27 01:16 -------
Subject: Re:  natSystemProperties.cc:213: error: 'getpwuid_r' was not declared
in this scope

> Hmmm, the manpage says this function is obsolete.  It looks like
> '_REENTRANT' and '_PTHREADS_DRAFT4' both need to be defined to get
> the proto.

Defining _PTHREADS_DRAFT4 isn't compatible with using posix threads:

# less /usr/include/pthread.h
#ifndef _PTHREAD_INCLUDED /* allows multiple inclusion */
#define _PTHREAD_INCLUDED

#ifdef _PTHREADS_DRAFT4
#    include <dce/pthread.h>
#else
#    include <sys/pthread.h>
#endif

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27330


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]