summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2019-08-08 14:47:44 -0700
committerAnatol Pomozov <anatol@google.com>2019-08-08 23:31:36 +0000
commitfd41f9a579f0a606d64edf76a239344bffcec89f (patch)
tree9b739e54a29b43b9a31676b5423d50210dee0184 /base/errors_unix.cpp
parent6c4cfd6af523cd3074972a63dc4f08b8fed45012 (diff)
Add header that defines strerror()
It helps to fix a compilation issue with host libc: core/base/errors_unix.cpp:25:10: error: use of undeclared identifier 'strerror' return strerror(error_code); ^ Change-Id: I71d4221cc1bfa6f0cc764b40b6b28159994b8e04
Diffstat (limited to 'base/errors_unix.cpp')
-rw-r--r--base/errors_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/errors_unix.cpp b/base/errors_unix.cpp
index 296995efe2..48269b6750 100644
--- a/base/errors_unix.cpp
+++ b/base/errors_unix.cpp
@@ -17,6 +17,7 @@
#include "android-base/errors.h"
#include <errno.h>
+#include <string.h>
namespace android {
namespace base {