From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 13 Feb 2016 17:31:19 +0100 Subject: [Buildroot] [PATCH v2 1/1] package/numactl: Fix uClibc compile breakage after musl compile fix In-Reply-To: <6vu3pcxqnk.ln2@ID-313208.user.individual.net> References: <1455304949-16808-1-git-send-email-bernd.kuhls@t-online.de> <20160212224934.32cd9661@free-electrons.com> <6vu3pcxqnk.ln2@ID-313208.user.individual.net> Message-ID: <20160213173119.0aa5f7c9@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Bernd, On Sat, 13 Feb 2016 16:33:26 +0100, Bernd Kuhls wrote: > yes, I did a sucessful build with the same musl defconfig which triggered > the build error first: https://git.busybox.net/buildroot/commit/package/ > numactl?id=21ed7a92fe5a771911ef06f97522e504d0eebbc2 > > Upstream committed the patch in the meantime: https://github.com/numactl/ > numactl/commit/3770bdc4fa7b9059db5cd2aa8bb09b50fa15e456 Then I don't really understand. The original problem was: syscall.c:118:41: error: missing binary operator before token "(" #if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11) But musl doesn't defined __GLIBC__. So I don't see how it would be different to do: #if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11) or #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 11) When neither __GLIBC__ nor __GLIBC_PREREQ are defined (which is the case with musl). Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com