From f11bb03825659ccc26465f4c67995facd62abbbd Mon Sep 17 00:00:00 2001 From: gvbr <41351562+gvbr@users.noreply.github.com> Date: Sat, 6 Oct 2018 04:37:37 -0700 Subject: [PATCH] Fix error when compiling without cheevos --- command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index c7d4155e09..f52fcee785 100644 --- a/command.c +++ b/command.c @@ -140,12 +140,14 @@ struct command }; #if defined(HAVE_COMMAND) -#if defined(HAVE_CHEEVOS) && (defined(HAVE_STDIN_CMD) || defined(HAVE_NETWORK_CMD) && defined(HAVE_NETWORKING)) static enum cmd_source_t lastcmd_source; +#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETWORKING) static int lastcmd_net_fd; static struct sockaddr_storage lastcmd_net_source; static socklen_t lastcmd_net_source_len; +#endif +#if defined(HAVE_CHEEVOS) && (defined(HAVE_STDIN_CMD) || defined(HAVE_NETWORK_CMD) && defined(HAVE_NETWORKING)) static void command_reply(const char * data, size_t len) { switch (lastcmd_source)