summaryrefslogtreecommitdiff
path: root/simpleperf/IOEventLoop.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-12-15 14:56:47 -0800
committerColin Cross <ccross@android.com>2022-03-29 15:27:09 -0700
commitc13a62bf6a4de286ce49dc05eac55daa92d5d87b (patch)
treea2cee4af0ea8a5ec0f987611a54ae3c5545deabc /simpleperf/IOEventLoop.h
parent7cef7187c8a78438a6b7c8bfd42d9da3c95e9a2b (diff)
downloadextras-c13a62bf6a4de286ce49dc05eac55daa92d5d87b.tar.gz
Support building simpleperf against musl
Support building simpleperf against musl by including the missing sys/time.h header and providing a definition of gettid, which doesn't exist in musl. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native Change-Id: Idcff0bf356ed2523dd953ddb6eba10c206afaa2b
Diffstat (limited to 'simpleperf/IOEventLoop.h')
-rw-r--r--simpleperf/IOEventLoop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/IOEventLoop.h b/simpleperf/IOEventLoop.h
index f0192969..0bbbbd01 100644
--- a/simpleperf/IOEventLoop.h
+++ b/simpleperf/IOEventLoop.h
@@ -18,6 +18,7 @@
#define SIMPLE_PERF_IOEVENT_LOOP_H_
#include <stdint.h>
+#include <sys/time.h>
#include <time.h>
#include <functional>