From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7430 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: ppc fix Date: Sat, 18 Apr 2015 18:28:53 -0400 Message-ID: <20150418222853.GK6817@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1429396149 11586 80.91.229.3 (18 Apr 2015 22:29:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 22:29:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7443-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 19 00:29:09 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YjbEa-0000t2-V8 for gllmg-musl@m.gmane.org; Sun, 19 Apr 2015 00:29:09 +0200 Original-Received: (qmail 4018 invoked by uid 550); 18 Apr 2015 22:29:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 4000 invoked from network); 18 Apr 2015 22:29:06 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7430 Archived-At: On Sat, Apr 18, 2015 at 11:10:17PM +0100, Justin Cormack wrote: > Starting to look at powerppc64, can you apply the following patch to > fix the detection macro, it is __PPC64__ not __PPC64. Attached as well > in case MTA mangles it. > > Justin > > > diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h > index acd825a..a3c2c90 100644 > --- a/arch/powerpc/bits/syscall.h > +++ b/arch/powerpc/bits/syscall.h > @@ -194,7 +194,7 @@ > #define __NR_vfork 189 > #define __NR_ugetrlimit 190 > #define __NR_readahead 191 > -#if !defined(__PPC64) || defined(__ABI32) > +#if !defined(__PPC64__) || defined(__ABI32) This header is for the 32-bit powerpc arch; I'm not sure why these #ifdefs ever got committed to begin with. As part of the arch/bits deduplication effort (coming up) it may make sense to use a unified source file for powerpc and powerpc64, but it would probably be processed by the build system rather than having installed #ifdefs. Rich