From 44f85712f47f68645bb292df70f807f67aaf6d05 Mon Sep 17 00:00:00 2001 From: Forrest Reiling Date: Mon, 27 Mar 2017 23:22:20 -0700 Subject: [PATCH] Add unistd.h include to GrVkGpu.cpp on unix for sleep Fixes Fuchsia build Change-Id: Ieb3b7092586495f5153ba18d14a94d8dcdab1dbd Reviewed-on: https://skia-review.googlesource.com/10261 Reviewed-by: Mike Klein Commit-Queue: Mike Klein --- src/gpu/vk/GrVkGpu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp index 7419f15..7676964 100644 --- a/src/gpu/vk/GrVkGpu.cpp +++ b/src/gpu/vk/GrVkGpu.cpp @@ -39,6 +39,10 @@ #include "SkSLCompiler.h" +#if !defined(SK_BUILD_FOR_WIN) +#include +#endif // !defined(SK_BUILD_FOR_WIN) + #define VK_CALL(X) GR_VK_CALL(this->vkInterface(), X) #define VK_CALL_RET(RET, X) GR_VK_CALL_RET(this->vkInterface(), RET, X) #define VK_CALL_ERRCHECK(X) GR_VK_CALL_ERRCHECK(this->vkInterface(), X) -- 2.7.4