diff --git a/media/libcpustats/ThreadCpuUsage.cpp b/media/libcpustats/ThreadCpuUsage.cpp index b43b36cc33..4b7549f1d1 100644 --- a/media/libcpustats/ThreadCpuUsage.cpp +++ b/media/libcpustats/ThreadCpuUsage.cpp @@ -26,6 +26,11 @@ #include +// implemented by host, but not declared in as FreeBSD does +extern "C" { + extern size_t strlcpy(char *dst, const char *src, size_t dstsize); +} + namespace android { bool ThreadCpuUsage::setEnabled(bool isEnabled)