From c9b67797290a69f44bd48a8052bd4ecd4589df5d Mon Sep 17 00:00:00 2001 From: James Anderson Date: Thu, 29 May 2014 11:55:21 -0700 Subject: [PATCH] I encountered a build error building Pillow on Windows with MSVS The fix I found was to use io.h when building with msvc. unistd.h should be for unix or mingw builds. --- libImaging/TiffDecode.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libImaging/TiffDecode.h b/libImaging/TiffDecode.h index 90fe3c9d4..3bf03a745 100644 --- a/libImaging/TiffDecode.h +++ b/libImaging/TiffDecode.h @@ -14,7 +14,12 @@ #endif #ifndef _UNISTD_H -#include + #if defined(_MSC_VER) + #include + #define _UNISTD_H + #else + #include + #endif #endif