aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DM.cpp')
-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 "