about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/sys/mman.h2
-rw-r--r--src/linux/remap_file_pages.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 9a1e60ff..a34448a6 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -33,7 +33,7 @@ int munlockall (void);
 
 #ifdef _GNU_SOURCE
 void *mremap (void *, size_t, size_t, int, ...);
-int remap_file_pages (void *, size_t, int, ssize_t, int);
+int remap_file_pages (void *, size_t, int, size_t, int);
 #endif
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
diff --git a/src/linux/remap_file_pages.c b/src/linux/remap_file_pages.c
index f95c4cc3..a9699ce2 100644
--- a/src/linux/remap_file_pages.c
+++ b/src/linux/remap_file_pages.c
@@ -2,7 +2,7 @@
 #include <sys/mman.h>
 #include "syscall.h"
 
-int remap_file_pages(void *addr, size_t size, int prot, ssize_t pgoff, int flags)
+int remap_file_pages(void *addr, size_t size, int prot, size_t pgoff, int flags)
 {
 	return syscall(SYS_remap_file_pages, addr, size, prot, pgoff, flags);
 }