fixup general __syscall breakage introduced in x32 port

the reordering of headers caused some risc archs to not see
the __syscall declaration anymore.
this caused build errors on mips with any compiler,
and on arm and microblaze with clang.

we now declare it locally just like the powerpc port does.
This commit is contained in:
rofl0r 2014-02-24 22:49:42 +01:00 committed by Rich Felker
parent 744f11897a
commit dbed392410
3 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
long (__syscall)(long, ...);
#ifndef __clang__
#define __asm_syscall(...) do { \

View File

@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
long (__syscall)(long, ...);
#ifndef __clang__
static __inline long __syscall0(long n)

View File

@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
long (__syscall)(long, ...);
#ifndef __clang__
#define __asm_syscall(...) do { \