Fix build with --disable-netplay.

This commit is contained in:
Themaister 2012-10-22 20:48:51 +02:00
parent 8161aec704
commit 85a89dc43e

View File

@ -128,10 +128,8 @@ rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port
if (!handle)
return NULL;
handle->net_fd = -1;
handle->stdin_enable = stdin_enable;
#ifdef HAVE_NETWORK_CMD
handle->net_fd = -1;
if (network_enable && !cmd_init_network(handle, port))
goto error;
#else
@ -140,6 +138,7 @@ rarch_cmd_t *rarch_cmd_new(bool stdin_enable, bool network_enable, uint16_t port
#endif
#ifdef HAVE_STDIN_CMD
handle->stdin_enable = stdin_enable;
if (stdin_enable && !cmd_init_stdin(handle))
goto error;
#else