From 3591e4a308d19766bd5a84672ddd65bd842dae83 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 17 Sep 2015 07:28:36 +0200 Subject: [PATCH] (libretro-db) Backport https://github.com/libretro/RetroArch/commit/5471e8cfa555513c5dd3f458acd8737cd04a8dd7 --- libretro-db/libretrodb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretro-db/libretrodb.c b/libretro-db/libretrodb.c index 77051e5700..006568cb67 100644 --- a/libretro-db/libretrodb.c +++ b/libretro-db/libretrodb.c @@ -150,7 +150,11 @@ int libretrodb_open(const char *path, libretrodb_t *db) libretrodb_header_t header; libretrodb_metadata_t md; int rv; +#ifdef _WIN32 + int fd = open(path, O_RDWR | O_BINARY); +#else int fd = open(path, O_RDWR); +#endif if (fd == -1) return -errno;