summaryrefslogtreecommitdiff
path: root/libartbase/base/strlcpy.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/strlcpy.h')
-rw-r--r--libartbase/base/strlcpy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libartbase/base/strlcpy.h b/libartbase/base/strlcpy.h
index 98ea34b0a5..b5978c5ee8 100644
--- a/libartbase/base/strlcpy.h
+++ b/libartbase/base/strlcpy.h
@@ -26,7 +26,7 @@
// Bionic exposes this function, but the host glibc does not. Remove this shim when we compile
// against bionic on the host, also.
-#if !defined(__BIONIC__) && !defined(__APPLE__)
+#if !defined(__BIONIC__) && !defined(__APPLE__) && !defined(ANDROID_HOST_MUSL)
static inline size_t strlcpy(char* dst, const char* src, size_t size) {
// Extra-lazy implementation: this is only a host shim, and we don't have to call this often.