console buildfix
This commit is contained in:
parent
118f1986ed
commit
b32a69889e
|
@ -73,7 +73,6 @@ else
|
||||||
BLACKLIST :=
|
BLACKLIST :=
|
||||||
BLACKLIST += input/input_overlay.o
|
BLACKLIST += input/input_overlay.o
|
||||||
BLACKLIST += tasks/task_overlay.o
|
BLACKLIST += tasks/task_overlay.o
|
||||||
BLACKLIST += network/netplay/netplay_discovery.o
|
|
||||||
BLACKLIST += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
|
BLACKLIST += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
|
||||||
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
|
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,10 @@ void deinit_netplay_discovery(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Discovery control */
|
/** Discovery control */
|
||||||
|
/* Todo: implement net_ifinfo and ntohs for consoles */
|
||||||
bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state, void *data)
|
bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state, void *data)
|
||||||
{
|
{
|
||||||
|
#ifndef RARCH_CONSOLE
|
||||||
char port_str[6];
|
char port_str[6];
|
||||||
int k = 0;
|
int k = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -191,7 +193,7 @@ bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state,
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,6 +230,8 @@ error:
|
||||||
*/
|
*/
|
||||||
bool netplay_lan_ad_server(netplay_t *netplay)
|
bool netplay_lan_ad_server(netplay_t *netplay)
|
||||||
{
|
{
|
||||||
|
/* Todo: implement net_ifinfo and ntohs for consoles */
|
||||||
|
#ifndef RARCH_CONSOLE
|
||||||
fd_set fds;
|
fd_set fds;
|
||||||
struct timeval tmp_tv = {0};
|
struct timeval tmp_tv = {0};
|
||||||
struct sockaddr their_addr;
|
struct sockaddr their_addr;
|
||||||
|
@ -351,8 +355,7 @@ bool netplay_lan_ad_server(netplay_t *netplay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
net_ifinfo_free(&interfaces);
|
net_ifinfo_free(&interfaces);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue