Make sure discovery code is properly ifdef'd for networking-less systems

This commit is contained in:
Gregor Richards 2016-12-03 00:03:29 -05:00
parent 999f23424a
commit 634bdee301

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,