diff --git a/menu/disp/rmenu_xui.cpp b/menu/disp/rmenu_xui.cpp index 4ce6806cdf..68b0bd475a 100644 --- a/menu/disp/rmenu_xui.cpp +++ b/menu/disp/rmenu_xui.cpp @@ -523,7 +523,7 @@ static void rmenu_xui_list_set_selection(void *data) static void rmenu_xui_update_core_info(void *data) { (void)data; - update_libretro_info(&g_extern.menu.info); + menu_update_libretro_info(&g_extern.menu.info); } menu_ctx_driver_t menu_ctx_rmenu_xui = { diff --git a/netplay.c b/netplay.c index 4a8e6cb654..8ea8ef971a 100644 --- a/netplay.c +++ b/netplay.c @@ -1572,9 +1572,12 @@ void netplay_post_frame(netplay_t *netplay) #define addrinfo addrinfo_rarch__ #ifdef _XBOX +/* TODO - implement h_length and h_addrtype */ struct hostent { - char **h_addr_list; /* Just do the minimal needed ... */ + int h_addrtype; /* host address type */ + int h_length; /* length of addresses */ + char **h_addr_list; /* list of addresses */ }; static struct hostent *gethostbyname(const char *name) diff --git a/netplay_compat.h b/netplay_compat.h index 02c1e35219..20036ada18 100644 --- a/netplay_compat.h +++ b/netplay_compat.h @@ -54,6 +54,14 @@ #ifdef _XBOX #define socklen_t int + +#ifndef h_addr +#define h_addr h_addr_list[0] /* for backward compatibility */ +#endif + +#ifndef SO_KEEPALIVE +#define SO_KEEPALIVE 0 /* verify if correct */ +#endif #endif #if defined(_WIN32)