From 19d05db9ae7f727c6174401a94bb8fe0560d92b9 Mon Sep 17 00:00:00 2001 From: crystalct Date: Thu, 6 Jan 2022 08:21:14 +0100 Subject: [PATCH] PSL1GHT/PS3 build fix (#13446) --- gfx/drivers_context/ps3_ctx.c | 2 +- libretro-common/include/libretro.h | 4 ++++ libretro-common/include/net/net_compat.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/ps3_ctx.c b/gfx/drivers_context/ps3_ctx.c index 1be8558b85..e7e8a1ddbc 100644 --- a/gfx/drivers_context/ps3_ctx.c +++ b/gfx/drivers_context/ps3_ctx.c @@ -151,7 +151,7 @@ static void gfx_ctx_ps3_set_swap_interval(void *data, int interval) static void gfx_ctx_ps3_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height) { - gl_t *gl = data; + gl2_t *gl = data; *quit = false; *resize = false; diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 2f17483701..755279e0a0 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -3461,6 +3461,10 @@ struct retro_core_option_definition const char *default_value; }; +#ifdef __PS3__ +#undef local +#endif + struct retro_core_options_intl { /* Pointer to an array of retro_core_option_definition structs diff --git a/libretro-common/include/net/net_compat.h b/libretro-common/include/net/net_compat.h index 7387596eb8..03a049da88 100644 --- a/libretro-common/include/net/net_compat.h +++ b/libretro-common/include/net/net_compat.h @@ -118,6 +118,7 @@ struct SceNetInAddr inet_aton(const char *ip_addr); #if !defined(__PSL1GHT__) && defined(__PS3__) #include +#include #else #include #endif