summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libgnu/mman_win32.c11
-rw-r--r--libgnu/sys_mman.win32.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/libgnu/mman_win32.c b/libgnu/mman_win32.c
index 78966c2e..98ea7c24 100644
--- a/libgnu/mman_win32.c
+++ b/libgnu/mman_win32.c
@@ -138,3 +138,14 @@ int mprotect(void *addr, size_t len, int prot)
errno = EACCES;
return -1;
}
+
+void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ...)
+{
+ (void) old_address;
+ (void) old_size;
+ (void) new_size;
+ (void) flags;
+ errno = ENOMEM;
+ return MAP_FAILED;
+}
+
diff --git a/libgnu/sys_mman.win32.h b/libgnu/sys_mman.win32.h
index 9ad54af5..7c4eef0f 100644
--- a/libgnu/sys_mman.win32.h
+++ b/libgnu/sys_mman.win32.h
@@ -59,5 +59,6 @@ int munmap(void *addr, size_t length);
int msync(void *addr, size_t length, int flags);
int posix_madvise(void *addr, size_t len, int advice);
int mprotect(void *addr, size_t len, int prot);
+void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ...);
#endif // MMAN_H