(macOS) Fix remaining build errors with netplay discovery ifdefs
This commit is contained in:
parent
027bbe0755
commit
57054a075d
|
@ -81,7 +81,9 @@
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
#include "../../network/netplay/netplay.h"
|
#include "../../network/netplay/netplay.h"
|
||||||
|
#ifdef HAVE_NETPLAYDISCOVERY
|
||||||
#include "../../network/netplay/netplay_discovery.h"
|
#include "../../network/netplay/netplay_discovery.h"
|
||||||
|
#endif
|
||||||
#include "../../wifi/wifi_driver.h"
|
#include "../../wifi/wifi_driver.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -5856,7 +5858,7 @@ static void netplay_refresh_rooms_cb(retro_task_t *task,
|
||||||
int lan_room_count = 0;
|
int lan_room_count = 0;
|
||||||
bool refresh = false;
|
bool refresh = false;
|
||||||
|
|
||||||
#ifndef RARCH_CONSOLE
|
#ifdef HAVE_NETPLAYDISCOVERY
|
||||||
netplay_discovery_driver_ctl(RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES, &lan_hosts);
|
netplay_discovery_driver_ctl(RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES, &lan_hosts);
|
||||||
if (lan_hosts)
|
if (lan_hosts)
|
||||||
lan_room_count = (int)lan_hosts->size;
|
lan_room_count = (int)lan_hosts->size;
|
||||||
|
|
|
@ -7883,8 +7883,10 @@ static bool netplay_pre_frame(
|
||||||
|
|
||||||
if (netplay->is_server && !netplay_use_mitm_server)
|
if (netplay->is_server && !netplay_use_mitm_server)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_NETPLAYDISCOVERY
|
||||||
/* Advertise our server */
|
/* Advertise our server */
|
||||||
netplay_lan_ad_server(netplay);
|
netplay_lan_ad_server(netplay);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* NAT traversal if applicable */
|
/* NAT traversal if applicable */
|
||||||
if (netplay->nat_traversal &&
|
if (netplay->nat_traversal &&
|
||||||
|
|
Loading…
Reference in New Issue