commit | 27a58348b2a38bf8cca16dfd8f332d8cd5773270 | [log] [tgz] |
---|---|---|
author | scroggo <scroggo@google.com> | Wed Oct 28 08:56:41 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Oct 28 08:56:41 2015 -0700 |
tree | 3e7c51ec49d145b18b8abadd31fbce8ae66c9b52 | |
parent | 9a7404188e4fe435a97b17685ec9959f1e5c220f [diff] [blame] |
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
diff --git a/dm/DM.cpp b/dm/DM.cpp index f1f54d3..2723103 100644 --- a/dm/DM.cpp +++ b/dm/DM.cpp
@@ -41,6 +41,10 @@ #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 "