mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
From 59e528634b46240167fb935339f6fec03d70eb74 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Thu, 24 Aug 2017 22:34:32 +0200
|
|
Subject: Platform fix
|
|
|
|
|
|
diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c
|
|
index 7f5c191..649255c 100644
|
|
--- a/contrib/minizip/ioapi.c
|
|
+++ b/contrib/minizip/ioapi.c
|
|
@@ -14,7 +14,7 @@
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
#endif
|
|
|
|
-#if defined(__APPLE__) || defined(IOAPI_NO_64)
|
|
+#if defined(__APPLE__) || defined(IOAPI_NO_64) || defined(__HAIKU__)
|
|
// 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)
|
|
diff --git a/contrib/minizip/ioapi.h b/contrib/minizip/ioapi.h
|
|
index 8dcbdb0..1655288 100644
|
|
--- a/contrib/minizip/ioapi.h
|
|
+++ b/contrib/minizip/ioapi.h
|
|
@@ -50,7 +50,7 @@
|
|
#define ftello64 ftell
|
|
#define fseeko64 fseek
|
|
#else
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined (__HAIKU__)
|
|
#define fopen64 fopen
|
|
#define ftello64 ftello
|
|
#define fseeko64 fseeko
|
|
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
|
|
index 3d65401..a6caacf 100644
|
|
--- a/contrib/minizip/miniunz.c
|
|
+++ b/contrib/minizip/miniunz.c
|
|
@@ -27,7 +27,7 @@
|
|
#endif
|
|
#endif
|
|
|
|
-#ifdef __APPLE__
|
|
+#if defined(__APPLE__) || defined(__HAIKU__)
|
|
// 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)
|
|
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
|
|
index 4288962..e3ec8e1 100644
|
|
--- a/contrib/minizip/minizip.c
|
|
+++ b/contrib/minizip/minizip.c
|
|
@@ -28,7 +28,7 @@
|
|
#endif
|
|
#endif
|
|
|
|
-#ifdef __APPLE__
|
|
+#if defined(__APPLE__) || defined(__HAIKU__)
|
|
// 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)
|
|
--
|
|
2.14.1
|
|
|