From e0e3036bda73c6154563870623389d6a4d601b22 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 15 Aug 2005 03:51:51 +0000 Subject: move arch-specific checks out of shared dl-syscall.h and into arch-specific dl-syscalls.h --- ldso/include/dl-syscall.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldso/include') diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h index 1bcf95fb1..fe3f46452 100644 --- a/ldso/include/dl-syscall.h +++ b/ldso/include/dl-syscall.h @@ -104,8 +104,7 @@ static inline _syscall0(gid_t, _dl_getpid); static inline _syscall3(int, _dl_readlink, const char *, path, char *, buf, size_t, bufsiz); #ifdef __NR_mmap -#if defined(__powerpc__) || defined(__mips__) || defined(__sh__) || defined(__sparc__) || defined(__x86_64__) -/* PowerPC, MIPS and SuperH have a different calling convention for mmap(). */ +#ifdef MMAP_HAS_6_ARGS #define __NR__dl_mmap __NR_mmap static inline _syscall6(void *, _dl_mmap, void *, start, size_t, length, int, prot, int, flags, int, fd, off_t, offset); @@ -141,6 +140,8 @@ static inline void * _dl_mmap(void * addr, unsigned long size, int prot, return(__syscall_mmap2(addr, size, prot, flags, fd, (off_t) (offset >> MMAP2_PAGE_SHIFT))); } +#else +#error Your architecture doesn't provide mmap() !? #endif #endif /* _LD_SYSCALL_H_ */ -- cgit v1.2.3