]> git.sur5r.net Git - openocd/commitdiff
- correct BUILD_ECOSBOARD definition is server.c
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Aug 2008 16:13:54 +0000 (16:13 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Aug 2008 16:13:54 +0000 (16:13 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@896 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/server/server.c

index aad98747445bdeb68c42d6c84c88655cf54087bc..062d74e6d851b16550e326481ed3ff8e8db09145 100644 (file)
@@ -306,7 +306,7 @@ int server_loop(command_context_t *command_context)
                }
                
 #ifndef _WIN32
-#ifndef BUILD_ECOSBOARD
+#if BUILD_ECOSBOARD == 0
                /* add STDIN to read_fds */
                FD_SET(fileno(stdin), &read_fds);
 #endif
@@ -400,7 +400,7 @@ int server_loop(command_context_t *command_context)
                }
                
 #ifndef _WIN32
-#ifndef BUILD_ECOSBOARD
+#if BUILD_ECOSBOARD == 0
                if (FD_ISSET(fileno(stdin), &read_fds))
                {
                        if (getc(stdin) == 'x')
@@ -455,7 +455,6 @@ int server_init(void)
        signal(SIGBREAK, sig_handler);
        signal(SIGABRT, sig_handler);
 #endif
-
        
        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;
 }
-
-