Skip to content

Instantly share code, notes, and snippets.

@ludwigschwardt
Created February 4, 2013 09:55
Show Gist options
  • Save ludwigschwardt/4705907 to your computer and use it in GitHub Desktop.
Save ludwigschwardt/4705907 to your computer and use it in GitHub Desktop.
Patches for casarest Homebrew formula
diff --git a/msvis/MSVis/AsynchronousTools.cc b/msvis/MSVis/AsynchronousTools.cc
index 81ad733..c442f0d 100644
--- a/msvis/MSVis/AsynchronousTools.cc
+++ b/msvis/MSVis/AsynchronousTools.cc
@@ -508,13 +508,8 @@ Semaphore::Semaphore (int initialValue)
name_p = utilj::format ("/CasaAsync_%03d", i);
impl_p->semaphore_p = sem_open (name_p.c_str(), O_CREAT | O_EXCL, 0700, initialValue);//new sem_t;
-#ifdef __APPLE__
- code = (size_t(impl_p->semaphore_p) == SEM_FAILED) ? errno : 0;
- } while (size_t(impl_p->semaphore_p) == SEM_FAILED && code == EEXIST);
-#else
code = (impl_p->semaphore_p == SEM_FAILED) ? errno : 0;
} while (impl_p->semaphore_p == SEM_FAILED && code == EEXIST);
-#endif
ThrowIfError (code, "Semaphore::open: name='" + name_p + "'");
}
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d3be48..208108d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,7 @@ find_package(CfitsIO REQUIRED)
find_package(WcsLib REQUIRED)
find_package(LAPACK REQUIRED)
find_package(BLAS REQUIRED)
-find_package(Boost REQUIRED COMPONENTS thread)
+find_package(Boost REQUIRED COMPONENTS thread system)
find_package(HDF5)
if(NOT HDF5_FOUND)
message(STATUS " HDF5 not used")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment