aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-03 20:48:20 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-03 20:48:20 +0000
commitea3e49f4e22d63e6b74a561ddc7c5519833607d8 (patch)
tree139f7b7ff9326237d0e8ebbcba425711172cd051
parent832af8c1b0484dc43eab545ad474481af5991ead (diff)
downloadriscv-openocd-ea3e49f4e22d63e6b74a561ddc7c5519833607d8.zip
riscv-openocd-ea3e49f4e22d63e6b74a561ddc7c5519833607d8.tar.gz
riscv-openocd-ea3e49f4e22d63e6b74a561ddc7c5519833607d8.tar.bz2
fix embedded builds
git-svn-id: svn://svn.berlios.de/openocd/trunk@1598 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/openocd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 226a731..7e8b7cd 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -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
*/