aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/runtime_unix.go')
-rw-r--r--src/runtime/runtime_unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/runtime_unix.go b/src/runtime/runtime_unix.go
index 464d8dfe5..aa3515f1a 100644
--- a/src/runtime/runtime_unix.go
+++ b/src/runtime/runtime_unix.go
@@ -16,8 +16,9 @@ func usleep(usec uint) int
//export malloc
func malloc(size uintptr) unsafe.Pointer
+// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
//export mmap
-func mmap(addr unsafe.Pointer, length, prot, flags, fd int, offset int) unsafe.Pointer
+func mmap(addr unsafe.Pointer, length uintptr, prot, flags, fd int, offset int) unsafe.Pointer
//export abort
func abort()