]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 16:14:46 +0000 (16:14 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 16:14:46 +0000 (16:14 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26853 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindBLACS.cmake [new file with mode: 0644]
deal.II/source/base/thread_management.cc

diff --git a/deal.II/cmake/modules/FindBLACS.cmake b/deal.II/cmake/modules/FindBLACS.cmake
new file mode 100644 (file)
index 0000000..08aec84
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# Try to find the BLACS library
+#
+# This module exports
+#
+
+INCLUDE(FindPackageHandleStandardArgs)
+
index babab8defc09d36deedc285b0494fa0c42453aad..09d1c11292f801bed58b23423138220251273691 100644 (file)
@@ -148,9 +148,9 @@ namespace Threads
 
   unsigned int this_thread_id ()
   {
-#if HAVE_GETPID
+#ifdef HAVE_GETPID
     const pid_t this_id = getpid();
-#elif SYS_gettid
+#elif defined(SYS_gettid)
     const int this_id = syscall(SYS_gettid);
 #else
 #  ifdef DEAL_II_MSVC

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.