From 7a26433846e72693dd3d5638b84c969d251fc231 Mon Sep 17 00:00:00 2001 From: Begasus Date: Wed, 27 Sep 2023 14:44:05 +0200 Subject: [PATCH] Fix building on Haiku --- CMakeLists.txt | 2 +- contrib/unzip/ioapi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75b160c6f..88f69174a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,7 +258,7 @@ IF( UNIX ) ENDIF() # Grouped compiler settings ######################################## -IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW) +IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW AND NOT HAIKU) IF(NOT ASSIMP_HUNTER_ENABLED) SET(CMAKE_POSITION_INDEPENDENT_CODE ON) ENDIF() diff --git a/contrib/unzip/ioapi.h b/contrib/unzip/ioapi.h index ae9ca7e83..548dafb5e 100644 --- a/contrib/unzip/ioapi.h +++ b/contrib/unzip/ioapi.h @@ -50,7 +50,7 @@ #define ftello64 ftell #define fseeko64 fseek #else -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__) #define fopen64 fopen #define ftello64 ftello #define fseeko64 fseeko