about summary refs log tree commit diff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/ChangeLog.aarch644
-rw-r--r--ports/sysdeps/unix/sysv/linux/aarch64/mmap.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64
index ec3dcafb8b..cde121efc2 100644
--- a/ports/ChangeLog.aarch64
+++ b/ports/ChangeLog.aarch64
@@ -1,5 +1,9 @@
 2012-12-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
 
+	* sysdeps/unix/sysv/linux/aarch64/mmap.c (mmap): Cast return value.
+
+2012-12-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
+
 	* sysdeps/aarch64/dl-machine.h (elf_machine_rela): Remove
 	strtab.
 
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/mmap.c b/ports/sysdeps/unix/sysv/linux/aarch64/mmap.c
index 14f3f6c6a5..05df25cd32 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/mmap.c
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/mmap.c
@@ -26,7 +26,7 @@
 __ptr_t
 __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)
 {
-  return INLINE_SYSCALL (mmap, 6, addr, len, prot, flags, fd, offset);
+  return (__ptr_t) INLINE_SYSCALL (mmap, 6, addr, len, prot, flags, fd, offset);
 }
 
 weak_alias (__mmap, mmap)