From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17564 invoked by alias); 28 Mar 2006 22:18:04 -0000 Received: (qmail 17556 invoked by uid 22791); 28 Mar 2006 22:18:03 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 28 Mar 2006 22:18:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FOMVk-00037Z-9Z; Tue, 28 Mar 2006 17:18:00 -0500 Date: Tue, 28 Mar 2006 22:29:00 -0000 From: Daniel Jacobowitz To: Randolph Chung Cc: gdb-patches@sources.redhat.com Subject: Re: [hpux] Fix build problem on hpux Message-ID: <20060328221800.GA11817@nevyn.them.org> Mail-Followup-To: Randolph Chung , gdb-patches@sources.redhat.com References: <44104BCC.8060700@tausq.org> <200603091908.k29J8E67001447@elgar.sibelius.xs4all.nl> <4410C609.5090207@tausq.org> <20060310023252.GA10422@nevyn.them.org> <4410EE58.1060007@tausq.org> <20060310035929.GA12013@nevyn.them.org> <4410FF26.40509@tausq.org> <44264904.6000005@tausq.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44264904.6000005@tausq.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00327.txt.bz2 On Sun, Mar 26, 2006 at 03:55:48PM +0800, Randolph Chung wrote: > +# When building on HPUX, we need to define _XOPEN_SOURCE_EXTENDED to get > +# proper prototypes. > +case $host_os in > +hpux*) > + AH_VERBATIM([_XOPEN_SOURCE_EXTENDED], > + [/* Define to 1 if on HPUX. */ > +#ifndef _XOPEN_SOURCE_EXTENDED > +# undef _XOPEN_SOURCE_EXTENDED > +#endif])dnl > + AC_DEFINE([_XOPEN_SOURCE_EXTENDED]) > + ;; > +esac I am most confused as to what you are trying to do. You should leave _XOPEN_SOURCE_EXTENDED alone on non-HP/UX, and make sure it is appropriately defined on HP/UX. #ifndef followed by #undef doesn't do much. And I don't think AH_VERBATIM does what you think; it changes the generated config.in, not the generated config.h, so it affects all platforms. -- Daniel Jacobowitz CodeSourcery