This is the mail archive of the java-patches@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]

Fix libjava build error on NetBSD


libjava fails to build on older NetBSD if a Linux-compatible /proc
is enabled, because NetBSD 2.x and 3.x do not have strerror_r.

This patch uses strerror if strerror_r is not available.  I also removed the
configure check for strerror, since it was not used anywhere (and other
parts of libjava use strerror without protecting it with HAVE_STRERROR).

Bootstrapped and tested on i386-unknown-netbsdelf2.1.

OK to commit?

/Krister


2007-07-14 Krister Walfridsson <cato@df.lth.se>


	* gnu/gcj/util/natGCInfo.cc: Use HAVE_STRERROR_R.
	* configure.ac: Remove check for strerror, add check for strerror_r.
	* configure: Regenerate.
	* include/config.h.in: Regenerate.

Attachment: libjava_070714_patch
Description: Text document


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