summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/v850/_mmap.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-12-21 10:14:44 +0000
committerEric Andersen <andersen@codepoet.org>2001-12-21 10:14:44 +0000
commit009bae64cf278be1a49eef73e6756c1fd268da34 (patch)
tree188e46837c5c275dc2394c5ee51e5f163c5ad6fb /libc/sysdeps/linux/v850/_mmap.c
parentcc8008364d4cb269c16b61fb1481dea019cb92c2 (diff)
A very large patch from Miles Bader <miles@lsi.nec.co.jp> to bring
v850 back into working condition. Thanks Miles! -Erik
Diffstat (limited to 'libc/sysdeps/linux/v850/_mmap.c')
-rw-r--r--libc/sysdeps/linux/v850/_mmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/v850/_mmap.c b/libc/sysdeps/linux/v850/_mmap.c
index 891e2beb5..a9cb0bcab 100644
--- a/libc/sysdeps/linux/v850/_mmap.c
+++ b/libc/sysdeps/linux/v850/_mmap.c
@@ -1,8 +1,9 @@
/* Use new style mmap for v850 */
+
#include <unistd.h>
+#include <errno.h>
#include <sys/mman.h>
#include <sys/syscall.h>
-_syscall6(__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
- int, flags, int, fd, __off_t, offset);
-
+_syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
+ int, flags, int, fd, __off_t, offset);