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>
This commit is contained in:
David Brownell
2010-01-10 10:06:58 -08:00
parent 5e221fa3a7
commit c8267930c7
2 changed files with 7 additions and 3 deletions

View File

@@ -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";