(XDK) Some stub build fixes

This commit is contained in:
twinaphex 2014-12-23 21:21:49 +01:00
parent 218b3dbda5
commit 94f5884a45
3 changed files with 13 additions and 2 deletions

View File

@ -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 = {

View File

@ -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)

View File

@ -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)