From 85a89dc43e9c2ff486c842628d93ca1ad9892526 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 22 Oct 2012 20:48:51 +0200 Subject: [PATCH] Fix build with --disable-netplay. --- command.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/command.c b/command.c index 98ea2a54b9..c686d58236 100644 --- a/command.c +++ b/command.c @@ -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