aboutsummaryrefslogtreecommitdiff
path: root/ports/giflib/msvc-guard-unistd-h.patch
blob: 36cef4491517916255090548ecee84930940e322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/gif_hash.h b/gif_hash.h
index 6a1b585..e6712e8 100644
--- a/gif_hash.h
+++ b/gif_hash.h
@@ -9,7 +9,9 @@ SPDX-License-Identifier: MIT
 #ifndef _GIF_HASH_H_
 #define _GIF_HASH_H_
 
+#ifndef _MSC_VER
 #include <unistd.h>
+#endif
 #include <stdint.h>
 
 #define HT_SIZE			8192	   /* 12bits = 4096 or twice as big! */