Put this around HAVE_COMMAND ifdefs

This commit is contained in:
twinaphex 2017-01-17 15:35:51 +01:00
parent 617ce26efb
commit a3e13fde32
1 changed files with 4 additions and 0 deletions

View File

@ -539,6 +539,7 @@ bool command_network_send(const char *cmd_)
} }
#ifdef HAVE_COMMAND
static void command_network_poll(command_t *handle) static void command_network_poll(command_t *handle)
{ {
fd_set fds; fd_set fds;
@ -577,6 +578,7 @@ static void command_network_poll(command_t *handle)
} }
} }
#endif #endif
#endif
#ifdef HAVE_STDIN_CMD #ifdef HAVE_STDIN_CMD
static bool command_stdin_init(command_t *handle) static bool command_stdin_init(command_t *handle)
@ -798,8 +800,10 @@ bool command_poll(command_t *handle)
memset(handle->state, 0, sizeof(handle->state)); memset(handle->state, 0, sizeof(handle->state));
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD) #if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD)
#ifdef HAVE_COMMAND
command_network_poll(handle); command_network_poll(handle);
#endif #endif
#endif
#ifdef HAVE_STDIN_CMD #ifdef HAVE_STDIN_CMD
command_stdin_poll(handle); command_stdin_poll(handle);