summaryrefslogtreecommitdiff
path: root/libartbase/base/safe_copy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/safe_copy.cc')
-rw-r--r--libartbase/base/safe_copy.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libartbase/base/safe_copy.cc b/libartbase/base/safe_copy.cc
index b46b921307..ad75aa7b28 100644
--- a/libartbase/base/safe_copy.cc
+++ b/libartbase/base/safe_copy.cc
@@ -16,8 +16,10 @@
#include "safe_copy.h"
+#ifdef __linux__
#include <sys/uio.h>
#include <sys/user.h>
+#endif
#include <unistd.h>
#include <algorithm>