mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(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
|
||||
#include "../../network/netplay/netplay.h"
|
||||
#ifdef HAVE_NETPLAYDISCOVERY
|
||||
#include "../../network/netplay/netplay_discovery.h"
|
||||
#endif
|
||||
#include "../../wifi/wifi_driver.h"
|
||||
#endif
|
||||
|
||||
@ -5856,7 +5858,7 @@ static void netplay_refresh_rooms_cb(retro_task_t *task,
|
||||
int lan_room_count = 0;
|
||||
bool refresh = false;
|
||||
|
||||
#ifndef RARCH_CONSOLE
|
||||
#ifdef HAVE_NETPLAYDISCOVERY
|
||||
netplay_discovery_driver_ctl(RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES, &lan_hosts);
|
||||
if (lan_hosts)
|
||||
lan_room_count = (int)lan_hosts->size;
|
||||
|
@ -7883,8 +7883,10 @@ static bool netplay_pre_frame(
|
||||
|
||||
if (netplay->is_server && !netplay_use_mitm_server)
|
||||
{
|
||||
#ifdef HAVE_NETPLAYDISCOVERY
|
||||
/* Advertise our server */
|
||||
netplay_lan_ad_server(netplay);
|
||||
#endif
|
||||
|
||||
/* NAT traversal if applicable */
|
||||
if (netplay->nat_traversal &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user