From d232ce99fe17ffc246d99574031f0cd935219d64 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 7 Sep 2021 16:24:50 +0600 Subject: [PATCH] Redirect fopen64 functions to fopen for non-Linux Unix systems --- 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 605482638..95a74f65f 100644 --- a/src/include/86box/plat.h +++ b/src/include/86box/plat.h @@ -36,7 +36,7 @@ extern int stricmp(const char* s1, const char* s2); extern int strnicmp(const char* s1, const char* s2, size_t n); #endif -#if defined(UNIX) && defined(FREEBSD) || defined(__APPLE__) +#if (defined(__unix__) || defined(__APPLE__)) && !defined(__linux__) /* FreeBSD has largefile by default. */ # define fopen64 fopen # define fseeko64 fseeko