This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] fix HPUX-PA build on posix.cc
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 30 Jun 2006 22:28:56 +0200
- Subject: [patch] fix HPUX-PA build on posix.cc
Hello all,
this one fixes a build error on HPUX-PA.
Ok for trunk?
Andreas
2006-06-30 Andreas Tobler <a.tobler@schweiz.ch>
* posix.cc (_Jv_platform_dladdr): Cast away const when calling dladdr().
Index: posix.cc
===================================================================
--- posix.cc (revision 115104)
+++ posix.cc (working copy)
@@ -219,7 +219,7 @@
#if defined (HAVE_DLFCN_H) && defined (HAVE_DLADDR)
Dl_info addr_info;
- ret_val = dladdr (addr, &addr_info);
+ ret_val = dladdr (const_cast<void *>(addr), &addr_info);
if (ret_val != 0)
{
info->file_name = addr_info.dli_fname;