summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2017-06-09 10:30:43 -0700
committer Andreas Gampe <agampe@google.com> 2017-06-09 10:30:43 -0700
commit6da1071f8b23b745e943f80027155c375670875d (patch)
tree878c89790a132a31b1a3de094fbd49757670e946
parent8375e4f918cd409be6155f8c7b323a203c090e7e (diff)
ART: Fix mac build
Follow-up to commit f45d61c0866461c9476f17644b27dc0664d507c5. Test: m Change-Id: Id9c397745f1d83e911ef9a375ba0da0a625239de
-rw-r--r--runtime/base/strlcpy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/strlcpy.h b/runtime/base/strlcpy.h
index 3d0ec35f9f..de135ea990 100644
--- a/runtime/base/strlcpy.h
+++ b/runtime/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.
-#ifndef __BIONIC__
+#if !defined(__BIONIC__) && !defined(__APPLE__)
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.