From 672ff82e4629d108b9c14815b012cca530dc544b Mon Sep 17 00:00:00 2001 From: dob205 Date: Sun, 22 Aug 2021 17:30:05 +0200 Subject: [PATCH 1/2] Update plat.h --- src/include/86box/plat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/86box/plat.h b/src/include/86box/plat.h index 301d9a4ef..23b99312f 100644 --- a/src/include/86box/plat.h +++ b/src/include/86box/plat.h @@ -32,7 +32,7 @@ # define strcasecmp _stricmp #endif -#if defined(UNIX) && defined(FREEBSD) +#if defined(UNIX) && defined(FREEBSD) && defined(__APPLE__) /* FreeBSD has largefile by default. */ # define fopen64 fopen # define fseeko64 fseeko From 34a14354bfefccbebc73e14700d495763a5b2986 Mon Sep 17 00:00:00 2001 From: dob205 Date: Sun, 22 Aug 2021 17:56:34 +0200 Subject: [PATCH 2/2] Fixes some small potential issues with the updated plat.h Added a small fix for the if condition, so that the OS definition can work properly --- src/include/86box/plat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/86box/plat.h b/src/include/86box/plat.h index 23b99312f..497123799 100644 --- a/src/include/86box/plat.h +++ b/src/include/86box/plat.h @@ -32,7 +32,7 @@ # define strcasecmp _stricmp #endif -#if defined(UNIX) && defined(FREEBSD) && defined(__APPLE__) +#if defined(UNIX) && defined(FREEBSD) || defined(__APPLE__) /* FreeBSD has largefile by default. */ # define fopen64 fopen # define fseeko64 fseeko