aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-09-14 11:22:50 -0700
committerColin Cross <ccross@android.com>2021-09-14 11:22:50 -0700
commitb6bd404f1928f89eb67b369aa98df609df46f934 (patch)
treec4c589ef46f3f5df7707eb6364cafa75a52f375d
parent03001bd1cfb44193ba075879b9b1940c0b227dc0 (diff)
downloadlibevent-b6bd404f1928f89eb67b369aa98df609df46f934.tar.gz
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
-rw-r--r--include/event2/event-config-linux.h2
1 files changed, 2 insertions, 0 deletions
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 <sys/sysctl.h> header file. */
+#if !defined(ANDROID_HOST_MUSL)
#define EVENT__HAVE_SYS_SYSCTL_H 1
+#endif
/* Define to 1 if you have the <sys/timerfd.h> header file. */
#define HAVE_SYS_TIMERFD_H 1