[Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
dave at hiauly1 dot hia dot nrc dot ca
gcc-bugzilla@gcc.gnu.org
Thu Apr 27 01:16:00 GMT 2006
------- 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
More information about the Java-prs
mailing list