summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-04-01 16:07:06 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-04-01 16:07:06 +0000
commitf8cf935fe40bb9af340a4eb468454bf01e2ce287 (patch)
tree6a8776e7e7d82f8f57d8eeb9790cb010fc47e565
parent58edfea96c81637f4cffb96eab34c351bd99930b (diff)
Fix remap_file_pages prototype and use mman.h header
-rw-r--r--libc/sysdeps/linux/common/remap_file_pages.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/remap_file_pages.c b/libc/sysdeps/linux/common/remap_file_pages.c
index f94067167..2af53a32e 100644
--- a/libc/sysdeps/linux/common/remap_file_pages.c
+++ b/libc/sysdeps/linux/common/remap_file_pages.c
@@ -5,12 +5,12 @@
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-
+#include <sys/mman.h>
#include <sys/syscall.h>
#ifdef __NR_remap_file_pages
-_syscall5(int, remap_file_pages, unsigned long, start, unsigned long, size,
- unsigned long, prot, unsigned long, pgoff, unsigned long, flags);
+_syscall5(int, remap_file_pages, void *, __start, size_t, __size,
+ int, __prot, size_t, __pgoff, int, __flags);
#endif