$NetBSD: patch-Source_kwsys_SystemInformation.cxx,v 1.8 2014/07/18 10:00:18 ryoon Exp $ * Add more conditional handling for NetBSD, same as others. * Treat FreeBSD and DragonFly the same way as NetBSD and OpenBSD. * Treat Solaris same as Linux. * Use correct cmake define. --- Source/kwsys/SystemInformation.cxx.orig 2014-01-16 17:15:08.000000000 +0000 +++ Source/kwsys/SystemInformation.cxx @@ -78,9 +78,9 @@ typedef int siginfo_t; # include // extern int errno; #endif -#ifdef __FreeBSD__ +#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) +# include # include -# include # include # include # include @@ -88,11 +88,15 @@ typedef int siginfo_t; # include # define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN # endif -#endif - -#if defined(__OpenBSD__) || defined(__NetBSD__) -# include -# include +# if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE) +# include +# if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE) +# include +# endif +# if defined(KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP) +# include +# endif +# endif #endif #if defined(KWSYS_SYS_HAS_MACHINE_CPU_H) @@ -130,7 +134,7 @@ typedef int siginfo_t; # endif #endif -#ifdef __linux +#if defined(__linux) || defined (__sun) || defined(_SCO_DS) # include # include # include @@ -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. -#if SIZEOF_VOID_P == 8 +#if CMAKE_SIZEOF_VOID_P == 8 if (this->QueryMemoryBySysconf()) { return true;