From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8088 invoked by alias); 30 Jun 2006 20:29:09 -0000 Received: (qmail 8079 invoked by uid 22791); 30 Jun 2006 20:29:09 -0000 X-Spam-Check-By: sourceware.org Received: from exsmtp01.agrinet.ch (HELO exsmtp01.agrinet.ch) (81.221.250.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Jun 2006 20:29:06 +0000 Received: from smtp.messaging.ch ([10.50.252.215]) by exsmtp01.agrinet.ch with Microsoft SMTPSVC(6.0.3790.211); Fri, 30 Jun 2006 22:29:03 +0200 Received: from [192.168.225.5] ([80.219.90.81]) by smtp.messaging.ch with id rwVQ1U0021lK1ML0000000 for java-patches@gcc.gnu.org; Fri, 30 Jun 2006 22:29:31 +0200 X-IMP: RBL SPAMCOP: 0.00,RBL SBL+XBL: 0.00,RBL SORBS: 0.10,RBL MAPS_ORDB: 0.00,URL RHS: 0.00,URL SURBL: 0.00 Message-ID: <44A58988.2080105@pop.agri.ch> Date: Fri, 30 Jun 2006 20:29:00 -0000 From: Andreas Tobler User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: Java Patches Subject: [patch] fix HPUX-PA build on posix.cc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00543.txt.bz2 Hello all, this one fixes a build error on HPUX-PA. Ok for trunk? Andreas 2006-06-30 Andreas Tobler * 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(addr), &addr_info); if (ret_val != 0) { info->file_name = addr_info.dli_fname;