Sigma sysdeps: change internal mmap function signature

This commit is contained in:
Thomas Woertman 2019-11-30 20:12:48 +01:00
parent 8932fb8524
commit 26a8759c57
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ namespace mlibc {
if(!(flags & MAP_ANONYMOUS))
__ensure(!"MAP_ANONYMOUS must be set, fd based mmaps are unimplemented");
void* ret = libsigma_vm_map(size, hint, prot, flags);
void* ret = libsigma_vm_map(size, hint, NULL, prot, flags);
if(!ret)
return ENOMEM;
*window = ret;

View file

@ -102,7 +102,7 @@ int sys_vm_map(void *hint, size_t size, int prot, int flags, int fd, off_t offse
if(!(flags & MAP_ANONYMOUS))
__ensure(!"MAP_ANONYMOUS must be set, fd based mmaps are unimplemented");
void* ret = libsigma_vm_map(size, hint, prot, flags);
void* ret = libsigma_vm_map(size, hint, NULL, prot, flags);
if(!ret)
return ENOMEM;
*window = ret;