* Add more conditional handling for NetBSD, same as others.
+* Treat FreeBSD the same way as NetBSD and OpenBSD.
* Treat Solaris same as Linux.
* Use correct cmake define.
---- Source/kwsys/SystemInformation.cxx.orig 2013-10-07 15:31:00.000000000 +0000
+--- Source/kwsys/SystemInformation.cxx.orig 2014-01-16 17:15:08.000000000 +0000
+++ Source/kwsys/SystemInformation.cxx
-@@ -93,6 +93,22 @@ typedef int siginfo_t;
- #if defined(__OpenBSD__) || defined(__NetBSD__)
- # include <sys/param.h>
+@@ -78,9 +78,9 @@ typedef int siginfo_t;
+ # include <errno.h> // extern int errno;
+ #endif
+
+-#ifdef __FreeBSD__
++#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
++# include <sys/param.h>
# include <sys/sysctl.h>
-+# include <sys/socket.h>
-+# include <netdb.h>
-+# include <netinet/in.h>
-+# if defined(KWSYS_SYS_HAS_IFADDRS_H)
-+# include <ifaddrs.h>
-+# define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
-+# endif
+-# include <fenv.h>
+ # include <sys/socket.h>
+ # include <netdb.h>
+ # include <netinet/in.h>
+@@ -88,11 +88,15 @@ typedef int siginfo_t;
+ # include <ifaddrs.h>
+ # define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
+ # endif
+-#endif
+-
+-#if defined(__OpenBSD__) || defined(__NetBSD__)
+-# include <sys/param.h>
+-# include <sys/sysctl.h>
+# if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE)
+# include <execinfo.h>
+# if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE)
@@ -29,7 +40,7 @@
#endif
#if defined(KWSYS_SYS_HAS_MACHINE_CPU_H)
-@@ -130,7 +146,7 @@ typedef int siginfo_t;
+@@ -130,7 +134,7 @@ typedef int siginfo_t;
# endif
#endif
@@ -38,7 +49,7 @@
# include <fenv.h>
# include <sys/socket.h>
# include <netdb.h>
-@@ -4616,7 +4632,7 @@ bool SystemInformationImplementation::Qu
+@@ -4616,7 +4620,7 @@ bool SystemInformationImplementation::Qu
// a 32 bit process on a 64 bit host the returned memory will be
// limited to 4GiB. So if this is a 32 bit process or if the sysconf
// method fails use the kstat interface.