Build fixes for FreeBSD 9.1.
- TODO: Support extended register sets on FreeBSD.

Patch by Samuel Jacob.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@180879 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp
index 6631faf..f5f8dd2 100644
--- a/source/Host/common/Host.cpp
+++ b/source/Host/common/Host.cpp
@@ -150,6 +150,9 @@
     delete info;
 
     int status = -1;
+#if defined (__FreeBSD__)
+    #define __WALL 0
+#endif
     const int options = __WALL;
 
     while (1)
@@ -1392,7 +1395,7 @@
     static uint32_t g_num_cores = UINT32_MAX;
     if (g_num_cores == UINT32_MAX)
     {
-#if defined(__APPLE__) or defined (__linux__)
+#if defined(__APPLE__) or defined (__linux__) or defined (__FreeBSD__)
 
         g_num_cores = ::sysconf(_SC_NPROCESSORS_ONLN);