diff --git a/core/base/errors_unix.cpp b/core/base/errors_unix.cpp index 296995e..48269b6 100644 --- a/core/base/errors_unix.cpp +++ b/core/base/errors_unix.cpp @@ -17,6 +17,7 @@ #include "android-base/errors.h" #include <errno.h> +#include <string.h> namespace android { namespace base { diff --git a/core/base/file.cpp b/core/base/file.cpp index 81b04d7..2fd2b6e 100644 --- a/core/base/file.cpp +++ b/core/base/file.cpp @@ -22,6 +22,7 @@ #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> +#include <string.h> #include <memory> #include <mutex> diff --git a/core/base/logging.cpp b/core/base/logging.cpp index 6357b4b..3c7dbce 100644 --- a/core/base/logging.cpp +++ b/core/base/logging.cpp @@ -23,6 +23,7 @@ #include <inttypes.h> #include <libgen.h> #include <time.h> +#include <string.h> // For getprogname(3) or program_invocation_short_name. #if defined(__ANDROID__) || defined(__APPLE__)