This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 27 Apr 2006 01:16:54 -0000
- Subject: [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
- References: <bug-27330-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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