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: "andreast at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 27 Apr 2006 22:33:20 -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 #3 from andreast at gcc dot gnu dot org 2006-04-27 22:33 -------
I'll submit the patch tommorow. It has been in my queue for a longer time.
Index: configure.ac
===================================================================
--- configure.ac (revision 113320)
+++ configure.ac (working copy)
@@ -811,6 +811,14 @@
THREADLIBS='-lpthread -lrt'
THREADSPEC='-lpthread -lrt'
;;
+ hppa*-hp-hpux*)
+ THREADCXXFLAGS=-pthread
+ # boehm-gc needs some functions from librt, so link that too.
+ THREADLIBS='-lpthread -lrt'
+ THREADSPEC='-lpthread -lrt'
+ # HPUX needs REENTRANT for the _r calls.
+ AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads])
+ ;;
*)
THREADLIBS=-lpthread
THREADSPEC=-lpthread
--
andreast at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |andreast at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-27 22:33:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27330