Skip to content

Commit da59c2e

Browse files
committed
[GWP-ASan] Change sys/cdefs.h to features.h
sys/cdefs.h is a glibc internal header which is not supposed to be included by applications. (Some libc implementations provide this file for compatibility.) Android features.h includes sys/cdefs.h, so we can include features.h instead. This change makes `ninja gwp_asan` build on musl.
1 parent 8cfe9c0 commit da59c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include <sys/cdefs.h> // IWYU pragma: keep (for __BIONIC__ macro)
9+
#include <features.h> // IWYU pragma: keep (for __BIONIC__ macro)
1010

1111
#ifdef __BIONIC__
1212
#include "gwp_asan/definitions.h"

0 commit comments

Comments
 (0)