]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Take over r23166: Patch by Aleksej Saushev: Make TBB compile also for NetBSD.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Jan 2011 00:44:27 +0000 (00:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Jan 2011 00:44:27 +0000 (00:44 +0000)
git-svn-id: https://svn.dealii.org/branches/releases/Branch-7-0@23167 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/tbb/tbb30_104oss/include/tbb/tbb_machine.h
deal.II/contrib/tbb/tbb30_104oss/src/rml/client/rml_factory.h
deal.II/contrib/tbb/tbb30_104oss/src/tbb/cache_aligned_allocator.cpp
deal.II/contrib/tbb/tbb30_104oss/src/tbb/dynamic_link.cpp
deal.II/contrib/tbb/tbb30_104oss/src/tbb/tbb_misc.h

index 0f22d0bdbdfa4f00de0c8de9f3917b718c1cd1f9..5efa08e2ce6a980f7e8ac92feaa1c52a3962d6b4 100644 (file)
@@ -57,7 +57,7 @@ extern "C" __declspec(dllimport) int __stdcall SwitchToThread( void );
 #pragma managed(pop)
 #endif
 
-#elif __linux__ || __FreeBSD__
+#elif __linux__ || __NetBSD__ || __FreeBSD__
 
 #if __i386__
 #include "machine/linux_ia32.h"
index e6d52a56f352bd8d055dcfd3c14652aa0c6ed0cb..3fc86b9d77d2552bf118e2d35075e213d516451e 100644 (file)
@@ -41,7 +41,7 @@
 #define RML_SERVER_NAME "libirml" DEBUG_SUFFIX ".dylib"
 #elif __linux__
 #define RML_SERVER_NAME "libirml" DEBUG_SUFFIX ".so.1"
-#elif __FreeBSD__ || __sun || _AIX
+#elif __NetBSD__ || __FreeBSD__ || __sun || _AIX
 #define RML_SERVER_NAME "libirml" DEBUG_SUFFIX ".so"
 #else
 #error Unknown OS
index e390cc1a39766f611544d07b95c3203bf1462139..9c35edf53634e5ec69505cb90037d3aeb876edb4 100644 (file)
@@ -113,7 +113,7 @@ static const dynamic_link_descriptor MallocLinkTable[] = {
 #define MALLOCLIB_NAME "libtbbmalloc" DEBUG_SUFFIX ".dylib"
 #elif __linux__
 #define MALLOCLIB_NAME "libtbbmalloc" DEBUG_SUFFIX  __TBB_STRING(.so.TBB_COMPATIBLE_INTERFACE_VERSION)
-#elif __FreeBSD__ || __sun || _AIX
+#elif __NetBSD__ || __FreeBSD__ || __sun || _AIX
 #define MALLOCLIB_NAME "libtbbmalloc" DEBUG_SUFFIX ".so"
 #else
 #error Unknown OS
index abefa6288357f8226078e11e424718f910c02200..8d7c8c97b04558e65534c1baa8ec98981c3df06b 100644 (file)
@@ -37,7 +37,7 @@
     #include <malloc.h>     /* alloca */
 #else
     #include <dlfcn.h>
-#if __FreeBSD__
+#if __NetBSD__ || __FreeBSD__
     #include <stdlib.h>     /* alloca */
 #else
     #include <alloca.h>
index ad3389f8c6024f85dbaa9525f4f7f3268942bd70..21d046480da1e1ce8b4189e1e7673ac2e2dcc51d 100644 (file)
@@ -40,7 +40,7 @@
 #elif defined(__sun)
 #include <sys/sysinfo.h>
 #include <unistd.h>
-#elif defined(__FreeBSD__) || defined(_AIX)
+#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(_AIX)
 #include <unistd.h>
 #endif
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.