Merge pull request #4140 from GregorR/ifdef-networking-discovery

Make sure discovery code is properly ifdef'd for networking-less systems
This commit is contained in:
Twinaphex 2016-12-03 06:05:36 +01:00 committed by GitHub
commit 37443eb7e1

View File

@ -2998,6 +2998,7 @@ static int action_ok_wifi(const char *path,
static int action_ok_netplay_lan_scan(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
#ifdef HAVE_NETWORKING
struct netplay_host_list *hosts;
struct netplay_host *host;
bool netplay_was_on = false;
@ -3026,6 +3027,10 @@ static int action_ok_netplay_lan_scan(const char *path,
return -1;
return generic_action_ok_command(CMD_EVENT_RESUME);
#else
return -1;
#endif
}
static int action_ok_content_collection_list(const char *path,