summaryrefslogtreecommitdiff
path: root/runtime/exec_utils.h
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-09-14 14:35:15 -0700
committer Colin Cross <ccross@android.com> 2021-09-17 22:54:50 +0000
commit073885cca8f9c52cc11629f9933ef97b6686bcfa (patch)
tree33a4a90eb66e0536fb037f3492cb6255d3c845a4 /runtime/exec_utils.h
parent96d8f4f3cf969ba8ab61abfb813b47969fe73bcc (diff)
Fix art compiling against musl
Fix various issues when compling art against musl: Check for ANDROID_HOST_MUSL when defining strlcpy and sig*64. Remove error.h, its not used and doesn't exist in musl. Include time.h that was being included transitively in glibc but not in musl. Add the musl libc library name to the list. pthread_sigqueue takes a sigval, not a sigval_t. Bug: 190084016 Test: m USE_HOST_MUSL=true Change-Id: I2548ef0013234c42efded411c733450c19434855
Diffstat (limited to 'runtime/exec_utils.h')
-rw-r--r--runtime/exec_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/exec_utils.h b/runtime/exec_utils.h
index e011c822ba..7ce0a9c20a 100644
--- a/runtime/exec_utils.h
+++ b/runtime/exec_utils.h
@@ -17,6 +17,8 @@
#ifndef ART_RUNTIME_EXEC_UTILS_H_
#define ART_RUNTIME_EXEC_UTILS_H_
+#include <time.h>
+
#include <string>
#include <vector>