Fix build with --disable-netplay.
This commit is contained in:
parent
8161aec704
commit
85a89dc43e
|
@ -128,10 +128,8 @@ rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port
|
||||||
if (!handle)
|
if (!handle)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
handle->net_fd = -1;
|
|
||||||
handle->stdin_enable = stdin_enable;
|
|
||||||
|
|
||||||
#ifdef HAVE_NETWORK_CMD
|
#ifdef HAVE_NETWORK_CMD
|
||||||
|
handle->net_fd = -1;
|
||||||
if (network_enable && !cmd_init_network(handle, port))
|
if (network_enable && !cmd_init_network(handle, port))
|
||||||
goto error;
|
goto error;
|
||||||
#else
|
#else
|
||||||
|
@ -140,6 +138,7 @@ rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDIN_CMD
|
#ifdef HAVE_STDIN_CMD
|
||||||
|
handle->stdin_enable = stdin_enable;
|
||||||
if (stdin_enable && !cmd_init_stdin(handle))
|
if (stdin_enable && !cmd_init_stdin(handle))
|
||||||
goto error;
|
goto error;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue