summaryrefslogtreecommitdiff
path: root/multimedia/assimp/patches/patch-contrib_zip_src_zip.h
blob: 2fc8dae3c8f676989d2f0bb2d78db4ddb6e8933d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-contrib_zip_src_zip.h,v 1.3 2022/04/14 13:20:42 nros Exp $

Fix builds on some 32-bit architectures.

--- contrib/zip/src/zip.h.orig	2022-03-17 10:35:44.000000000 +0000
+++ contrib/zip/src/zip.h
@@ -19,16 +19,6 @@
 extern "C" {
 #endif
 
-#if !defined(_POSIX_C_SOURCE) && defined(_MSC_VER)
-// 64-bit Windows is the only mainstream platform
-// where sizeof(long) != sizeof(void*)
-#ifdef _WIN64
-typedef long long ssize_t; /* byte count or error */
-#else
-typedef long ssize_t; /* byte count or error */
-#endif
-#endif
-
 #ifndef MAX_PATH
 #define MAX_PATH 32767 /* # chars in a path name including NULL */
 #endif