- correct BUILD_ECOSBOARD definition is server.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@896 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-08-07 16:13:54 +00:00
parent d203582a89
commit 33682ec49a
1 changed files with 2 additions and 5 deletions

View File

@ -306,7 +306,7 @@ int server_loop(command_context_t *command_context)
} }
#ifndef _WIN32 #ifndef _WIN32
#ifndef BUILD_ECOSBOARD #if BUILD_ECOSBOARD == 0
/* add STDIN to read_fds */ /* add STDIN to read_fds */
FD_SET(fileno(stdin), &read_fds); FD_SET(fileno(stdin), &read_fds);
#endif #endif
@ -400,7 +400,7 @@ int server_loop(command_context_t *command_context)
} }
#ifndef _WIN32 #ifndef _WIN32
#ifndef BUILD_ECOSBOARD #if BUILD_ECOSBOARD == 0
if (FD_ISSET(fileno(stdin), &read_fds)) if (FD_ISSET(fileno(stdin), &read_fds))
{ {
if (getc(stdin) == 'x') if (getc(stdin) == 'x')
@ -456,7 +456,6 @@ int server_init(void)
signal(SIGABRT, sig_handler); signal(SIGABRT, sig_handler);
#endif #endif
return ERROR_OK; return ERROR_OK;
} }
@ -487,5 +486,3 @@ int handle_shutdown_command(struct command_context_s *cmd_ctx, char *cmd, char *
return ERROR_COMMAND_CLOSE_CONNECTION; return ERROR_COMMAND_CLOSE_CONNECTION;
} }