| Index: src/trusted/service_runtime/linux/nacl_bootstrap.c
|
| diff --git a/src/trusted/service_runtime/linux/nacl_bootstrap.c b/src/trusted/service_runtime/linux/nacl_bootstrap.c
|
| index 1d5cda1994120b628cb72a5e501ab0bc794e4f21..3394efdc69d4f9c906140134d0e4cafc5e7a7a22 100644
|
| --- a/src/trusted/service_runtime/linux/nacl_bootstrap.c
|
| +++ b/src/trusted/service_runtime/linux/nacl_bootstrap.c
|
| @@ -178,11 +178,7 @@ static void my_pread(const char *file, const char *fail_message,
|
|
|
| static uintptr_t my_mmap_simple(uintptr_t address, size_t size,
|
| int prot, int flags, int fd, uintptr_t pos) {
|
| -#if defined(__NR_mmap2)
|
| - void *result = sys_mmap2((void *) address, size, prot, flags, fd, pos >> 12);
|
| -#else
|
| void *result = sys_mmap((void *) address, size, prot, flags, fd, pos);
|
| -#endif
|
| return (uintptr_t) result;
|
| }
|
|
|
|
|