Browse Source

Fix remap_file_pages prototype and use mman.h header

Carmelo Amoroso 16 years ago
parent
commit
f8cf935fe4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      libc/sysdeps/linux/common/remap_file_pages.c

+ 3 - 3
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