From f527f6466f2b4aaaeef7721717075a15d3404404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 14 Nov 2015 18:12:09 -0300 Subject: [PATCH] (libretro-db) Fix build --- libretro-common/file/retro_file.c | 2 +- libretro-db/Makefile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libretro-common/file/retro_file.c b/libretro-common/file/retro_file.c index c2c219440b..5b16acda06 100644 --- a/libretro-common/file/retro_file.c +++ b/libretro-common/file/retro_file.c @@ -132,7 +132,7 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len) #endif stream->hints &= ~RFILE_HINT_MMAP; - switch (mode) + switch (mode & 0xff) { case RFILE_MODE_READ: #if defined(VITA) || defined(PSP) diff --git a/libretro-db/Makefile b/libretro-db/Makefile index 224df910ce..b4382b034a 100644 --- a/libretro-db/Makefile +++ b/libretro-db/Makefile @@ -12,7 +12,7 @@ LUA_CONVERTER_C = \ lua_converter.c \ $(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \ $(LIBRETRO_COMMON_DIR)/file/retro_file.c \ - $(LIBRETRO_COMMON_DIR)/compat/compat.c + $(LIBRETRO_COMMON_DIR)/compat/compat_strl.c LUA_CONVERTER_C_OBJS := $(LUA_CONVERTER_C:.c=.o) @@ -28,7 +28,7 @@ PLAIN_CONVERTER_C = \ $(LIBRETRO_COMMON_DIR)/hash/rhash.c \ $(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \ $(LIBRETRO_COMMON_DIR)/file/retro_file.c \ - $(LIBRETRO_COMMON_DIR)/compat/compat.c + $(LIBRETRO_COMMON_DIR)/compat/compat_strl.c PLAIN_CONVERTER_C_OBJS := $(PLAIN_CONVERTER_C:.c=.o) @@ -41,7 +41,7 @@ RARCHDB_TOOL_C = \ libretrodb.c \ $(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \ $(LIBRETRO_COMMON_DIR)/file/retro_file.c \ - $(LIBRETRO_COMMON_DIR)/compat/compat.c + $(LIBRETRO_COMMON_DIR)/compat/compat_strl.c RARCHDB_TOOL_OBJS := $(RARCHDB_TOOL_C:.c=.o) @@ -54,7 +54,7 @@ TESTLIB_C = \ rmsgpack_dom.c \ $(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \ $(LIBRETRO_COMMON_DIR)/file/retro_file.c \ - $(LIBRETRO_COMMON_DIR)/compat/compat.c + $(LIBRETRO_COMMON_DIR)/compat/compat_strl.c TESTLIB_OBJS := $(TESTLIB_C:.c=.o)