aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-10-28 08:56:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-28 08:56:41 -0700
commit27a58348b2a38bf8cca16dfd8f332d8cd5773270 (patch)
tree3e7c51ec49d145b18b8abadd31fbce8ae66c9b52
parent9a7404188e4fe435a97b17685ec9959f1e5c220f (diff)
Add missing include for sleep().
This used to be leaked unconditionally by libc++. Change-Id: I984ab7328ff3a2499c3c89a6862feaa62b6166de Author: Dan Albert<danalbert@google.com> Cherry-pick of https://android-review.googlesource.com/#/c/178189/1 This fixes the AOSP mips build. Review URL: https://codereview.chromium.org/1425843003
-rw-r--r--dm/DM.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index f1f54d3f4c..27231032a3 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -41,6 +41,10 @@ extern void SkPDFImageDumpStats();
#include <stdlib.h>
+#ifndef SK_BUILD_FOR_WIN32
+ #include <unistd.h>
+#endif
+
DEFINE_string(src, "tests gm skp image", "Source types to test.");
DEFINE_bool(nameByHash, false,
"If true, write to FLAGS_writePath[0]/<hash>.png instead of "