diff options
Diffstat (limited to 'tools/include/nolibc/sys.h')
| -rw-r--r-- | tools/include/nolibc/sys.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 08491070387b..ce3ee03aa679 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -692,12 +692,12 @@ void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd,  {  #ifndef my_syscall6  	/* Function not implemented. */ -	return -ENOSYS; +	return (void *)-ENOSYS;  #else  	int n; -#if defined(__i386__) +#if defined(__NR_mmap2)  	n = __NR_mmap2;  	offset >>= 12;  #else |