First message bounced, so here it goes again:

---------- Forwarded message ----------
Date: Mon, 16 Jan 2012 22:52:19 +0200
From: Petri Laakso <petri.laa...@asd.fi>
To: openocd-devel@lists.sourceforge.net
Subject: OpenOCD on NetBSD (patch)

Hi

I was trying to build OpenOCD on NetBSD and ran into problem,
during "make" phase:

command.c:1375:2: error: #warning "Unrecognized host OS..."

Fix for this was simple enough and now build completes fine.
Please could you include this small change to make OpenOCD
build on NetBSD?

Petri

diff --git a/src/helper/command.c b/src/helper/command.c
index 3ed8dc8..6f86c24 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -1371,6 +1371,8 @@ struct command_context* command_init(const char *startup_t
cl, Jim_Interp *interp
         HostOs = "ecos";
  #elif defined(__FreeBSD__)
         HostOs = "freebsd";
+#elif defined(__NetBSD__)
+        HostOs = "netbsd";
  #else
  #warning "Unrecognized host OS..."
         HostOs = "other";

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to