From b6bd404f1928f89eb67b369aa98df609df46f934 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 14 Sep 2021 11:22:50 -0700 Subject: Fix external/libevent compiling against musl Unset EVENT__HAVE_SYS_SYSCTL_H when compiling against musl. Bug: 190084016 Test: m USE_HOST_MUSL=true Change-Id: I8c47d3d11c15125010aa4771be0abf205fd22ef6 --- include/event2/event-config-linux.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/event2/event-config-linux.h b/include/event2/event-config-linux.h index 7c43c78..52ac09f 100644 --- a/include/event2/event-config-linux.h +++ b/include/event2/event-config-linux.h @@ -352,7 +352,9 @@ #define EVENT__HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ +#if !defined(ANDROID_HOST_MUSL) #define EVENT__HAVE_SYS_SYSCTL_H 1 +#endif /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIMERFD_H 1 -- cgit v1.2.3