FreeBSD build fixes
[fw/openocd] / src / helper / command.c
index 288ed72af49dc81a49e59c251ae885bb61a2b807..568596d17b96afe4c92bd30aef2f44eb8988ad2c 100644 (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";