mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
parent
0c51995b2b
commit
f224a55d57
3 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,7 @@
|
||||||
int madvise(void *addr, size_t length, int advice) {
|
int madvise(void *addr, size_t length, int advice) {
|
||||||
int rc;
|
int rc;
|
||||||
if (IsAsan() && !__asan_is_valid(addr, length)) {
|
if (IsAsan() && !__asan_is_valid(addr, length)) {
|
||||||
rc = efault();
|
rc = enomem();
|
||||||
} else if (!IsWindows()) {
|
} else if (!IsWindows()) {
|
||||||
rc = sys_madvise(addr, length, advice);
|
rc = sys_madvise(addr, length, advice);
|
||||||
} else {
|
} else {
|
||||||
|
|
1
third_party/bash/BUILD.mk
vendored
1
third_party/bash/BUILD.mk
vendored
|
@ -85,6 +85,7 @@ $(THIRD_PARTY_BASH_OBJS): private \
|
||||||
-Wno-missing-braces \
|
-Wno-missing-braces \
|
||||||
-Wno-unused-label \
|
-Wno-unused-label \
|
||||||
-Wno-unused-value \
|
-Wno-unused-value \
|
||||||
|
-Wno-return-type \
|
||||||
-Wno-parentheses \
|
-Wno-parentheses \
|
||||||
-fportcosmo
|
-fportcosmo
|
||||||
|
|
||||||
|
|
2
third_party/libunwind/libunwind.cc
vendored
2
third_party/libunwind/libunwind.cc
vendored
|
@ -23,7 +23,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
|
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
|
||||||
#include <sanitizer/asan_interface.h>
|
//#include <sanitizer/asan_interface.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__USING_SJLJ_EXCEPTIONS__)
|
#if !defined(__USING_SJLJ_EXCEPTIONS__)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue