mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Fix some build breaks
This commit is contained in:
parent
27f7ffd4fd
commit
a81192e0b9
5 changed files with 5 additions and 10 deletions
|
@ -33,7 +33,7 @@ int32_t sys_fstatat(int32_t dirfd, const char *path, struct stat *st,
|
|||
if (IsAsan() && !__asan_is_valid(path, 1)) return efault();
|
||||
if (IsLinux()) {
|
||||
_Static_assert(sizeof(*st) == sizeof(ms.linux), "assumption broken");
|
||||
if (IsAsan() && !__asan_is_valid(st, sizeof(*st))) return efault();
|
||||
if (IsAsan() && (st && !__asan_is_valid(st, sizeof(*st)))) return efault();
|
||||
p = st;
|
||||
} else if (st) {
|
||||
p = &ms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue