summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-01-10 10:06:58 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-10 10:06:58 -0800
commitc8267930c7cff5685b33cd0174deb75a46dbb09b (patch)
treeb679b876a63d5de1f0d845e6b737dfb20b4c574d /src
parent5e221fa3a72dcdde92cf749495131748d32f7d8a (diff)
downloadopenocd_libswd-c8267930c7cff5685b33cd0174deb75a46dbb09b.tar.gz
openocd_libswd-c8267930c7cff5685b33cd0174deb75a46dbb09b.tar.bz2
openocd_libswd-c8267930c7cff5685b33cd0174deb75a46dbb09b.tar.xz
openocd_libswd-c8267930c7cff5685b33cd0174deb75a46dbb09b.zip
FreeBSD build fixes
Based on notes from Tomek Cedro <tomek.cedro@gmail.com> and Steve Franks <bahamasfranks@gmail.com>. In the User's Guide, sort the list of operating systems reported through Tcl with $ocd_HOSTOS ... and include FreeBSD. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/helper/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index 288ed72a..568596d1 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -1358,6 +1358,7 @@ struct command_context* command_init(const char *startup_tcl, Jim_Interp *interp
#endif
context->interp = interp;
+ /* Stick to lowercase for HostOS strings. */
#if defined(_MSC_VER)
/* WinXX - is generic, the forward
* looking problem is this:
@@ -1377,6 +1378,8 @@ struct command_context* command_init(const char *startup_tcl, Jim_Interp *interp
HostOs = "mingw32";
#elif defined(__ECOS)
HostOs = "ecos";
+#elif defined(__FreeBSD__)
+ HostOs = "freebsd";
#else
#warning "Unrecognized host OS..."
HostOs = "other";