update mmap.c to use ssize_t instead of off_t for 64bit

This commit is contained in:
richinseattle
2023-07-30 00:03:38 -07:00
parent cddb05d5b2
commit 6b6ed3db97
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ extern "C" {
/* Flags for portable clock_gettime call. */
#define CLOCK_REALTIME 0
void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off);
void* mmap(void *addr, size_t len, int prot, int flags, int fildes, ssize_t off);
int munmap(void *addr, size_t len);
int mprotect(void *addr, size_t len, int prot);
int msync(void *addr, size_t len, int flags);