From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22140 invoked by alias); 27 Apr 2006 01:16:55 -0000 Received: (qmail 22122 invoked by alias); 27 Apr 2006 01:16:54 -0000 Date: Thu, 27 Apr 2006 01:16:00 -0000 Message-ID: <20060427011654.22121.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "dave at hiauly1 dot hia dot nrc dot ca" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00180.txt.bz2 List-Id: ------- 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 #else # include #endif Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27330