From c8267930c7cff5685b33cd0174deb75a46dbb09b Mon Sep 17 00:00:00 2001 From: David Brownell Date: Sun, 10 Jan 2010 10:06:58 -0800 Subject: FreeBSD build fixes Based on notes from Tomek Cedro and Steve Franks . 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 --- src/helper/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helper/command.c') 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"; -- cgit v1.2.3