summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-02-17 20:03:16 -0800
committerCopybara-Service <copybara-worker@google.com>2021-05-11 12:40:38 -0700
commit0a460c676a8735e1eae8a4e20bd7a3caae267814 (patch)
tree04733e210624349a5653e3f2e45f50b403042f7f
parent696c409cc6f245d2c33d5ab7c6497e1ffc30e830 (diff)
downloadgwp_asan-0a460c676a8735e1eae8a4e20bd7a3caae267814.tar.gz
[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. GitOrigin-RevId: da59c2e4dc1c7b502cc2098247b2ee38ac297e0c Change-Id: If3ce7edefeb0b6a87b341652a57f683a9af21a97
-rw-r--r--gwp_asan/platform_specific/utilities_posix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gwp_asan/platform_specific/utilities_posix.cpp b/gwp_asan/platform_specific/utilities_posix.cpp
index 338b531..7357963 100644
--- a/gwp_asan/platform_specific/utilities_posix.cpp
+++ b/gwp_asan/platform_specific/utilities_posix.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include <sys/cdefs.h> // IWYU pragma: keep (for __BIONIC__ macro)
+#include <features.h> // IWYU pragma: keep (for __BIONIC__ macro)
#ifdef __BIONIC__
#include "gwp_asan/definitions.h"