Sigma sysdeps: change internal mmap function signature
This commit is contained in:
parent
8932fb8524
commit
26a8759c57
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue