]> git.sur5r.net Git - openocd/commitdiff
fix embedded builds
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 3 May 2009 20:48:20 +0000 (20:48 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 3 May 2009 20:48:20 +0000 (20:48 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1598 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/openocd.c

index 226a7310ad6fd1b3b6f266bd908c2b9861228845..7e8b7cdf3ac905eafe8a7ffd1f1991e590403b4b 100644 (file)
@@ -187,7 +187,8 @@ static int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, cha
 
 command_context_t *global_cmd_ctx;
 
-static command_context_t *setup_command_handler(void)
+/* NB! this fn can be invoked outside this file for non PC hosted builds */
+command_context_t *setup_command_handler(void)
 {
        command_context_t *cmd_ctx;
 
@@ -229,7 +230,7 @@ int httpd_start(void);
 void httpd_stop(void);
 
 
-#if !BUILD_HTTPD
+#if !BUILD_HTTPD && !BUILD_ECOSBOARD
 /* implementations of OpenOCD that uses multithreading needs to know when
  * OpenOCD is sleeping. No-op in vanilla OpenOCD
  */