From 1fa8f40bebe42fb5a444925c02d8dc00c7f33180 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 17 Jul 2022 13:17:24 +0200 Subject: [PATCH] Only Windows has O_BINARY. --- modules/src/system/open.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/src/system/open.c b/modules/src/system/open.c index 3ec515a77..cb6e7537e 100644 --- a/modules/src/system/open.c +++ b/modules/src/system/open.c @@ -9,6 +9,10 @@ #include #include "system.h" +#if !defined WIN32 +#define O_BINARY 0 +#endif + extern File *_get_entry(); int