summaryrefslogtreecommitdiff
path: root/ldso/include/dl-syscall.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-15 03:51:51 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-15 03:51:51 +0000
commite0e3036bda73c6154563870623389d6a4d601b22 (patch)
tree35428fac2189104d4365b8e75e414ac4ee4b915e /ldso/include/dl-syscall.h
parenta0ca45d4673a5e721225be62311250a4aa93a200 (diff)
move arch-specific checks out of shared dl-syscall.h and into arch-specific dl-syscalls.h
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r--ldso/include/dl-syscall.h5
1 files changed, 3 insertions, 2 deletions
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_ */