openbsd-ports/lang/mono/patches/patch-support_minizip_ioapi_c
2022-03-11 19:28:46 +00:00

13 lines
541 B
Plaintext

Index: support/minizip/ioapi.c
--- support/minizip/ioapi.c.orig
+++ support/minizip/ioapi.c
@@ -14,7 +14,7 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
-#if defined(__APPLE__) || defined(IOAPI_NO_64) || defined(__HAIKU__)
+#if defined(__APPLE__) || defined(IOAPI_NO_64) || defined(__HAIKU__) || defined(__OpenBSD__)
// In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
#define FTELLO_FUNC(stream) ftello(stream)