Fix MODE=dbg build

Fixes #1067
This commit is contained in:
Justine Tunney 2024-01-06 15:22:19 -08:00
parent 0c51995b2b
commit f224a55d57
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@
int madvise(void *addr, size_t length, int advice) {
int rc;
if (IsAsan() && !__asan_is_valid(addr, length)) {
rc = efault();
rc = enomem();
} else if (!IsWindows()) {
rc = sys_madvise(addr, length, advice);
} else {