From c2cd25bff89c3581780e7eb267262cb8c4da0d38 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 6 Apr 2011 20:32:53 -0400 Subject: consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix --- src/mman/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mman/mmap.c') diff --git a/src/mman/mmap.c b/src/mman/mmap.c index 0b092ae2..883acb28 100644 --- a/src/mman/mmap.c +++ b/src/mman/mmap.c @@ -10,7 +10,7 @@ void *__mmap(void *start, size_t len, int prot, int flags, int fd, off_t off) if (sizeof(off_t) > sizeof(long)) if (((long)off & 0xfff) | ((long)((unsigned long long)off>>(12 + 8*(sizeof(off_t)-sizeof(long)))))) start = (void *)-1; -#ifdef __NR_mmap2 +#ifdef SYS_mmap2 return (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off>>12); #else return (void *)syscall(SYS_mmap, start, len, prot, flags, fd, off); -- cgit v1.2.1