From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5830 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: compiling musl on x86_64 linux with ppc Date: Wed, 13 Aug 2014 16:43:58 +0200 Message-ID: <20140813144357.GO22308@port70.net> References: <20140813091843.GD5170@example.net> <20140813123832.GK12888@brightrain.aerifal.cx> <20140813125607.GK5170@example.net> <20140813142332.GN12888@brightrain.aerifal.cx> 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 1407941056 22498 80.91.229.3 (13 Aug 2014 14:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 14:44:16 +0000 (UTC) Cc: u-igbb@aetey.se To: musl@lists.openwall.com Original-X-From: musl-return-5836-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 13 16:44:10 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XHZmc-0000D3-H1 for gllmg-musl@plane.gmane.org; Wed, 13 Aug 2014 16:44:10 +0200 Original-Received: (qmail 7381 invoked by uid 550); 13 Aug 2014 14:44:09 -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 7368 invoked from network); 13 Aug 2014 14:44:09 -0000 Mail-Followup-To: musl@lists.openwall.com, u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140813142332.GN12888@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5830 Archived-At: * Rich Felker [2014-08-13 10:23:32 -0400]: > BTW about the mmap2 preprocessor issue, did you raise that with ppc > developers too? I think it's a bug on their side but I'm not 100% > sure. If the code in musl is not valid C I'll change it, but if it is, it is not valid c http://port70.net/~nsz/c/c99/n1256.html#6.10.3p11 i'd fix it like +#ifndef SYS_mmap2 +#define SYS_mmap2 SYS_mmap +#endif mem = (void *)__syscall( -#ifdef SYS_mmap2 SYS_mmap2, -#else - SYS_mmap, -#endif