]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made these two tests pass again on Darwin.
authorBart Van Assche <bvanassche@acm.org>
Thu, 29 Apr 2010 15:50:02 +0000 (15:50 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 29 Apr 2010 15:50:02 +0000 (15:50 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11117

drd/tests/circular_buffer.c
drd/tests/pth_inconsistent_cond_wait.c

index c5deb74f57dd2ae7e0230873869a16b72783b3cd..68035215c56dcb343c76542c06f72b8b10a4cf1a 100644 (file)
@@ -59,7 +59,7 @@ int fetch_and_add(int* p, int i)
 
 static sem_t* create_semaphore(const char* const name, const int value)
 {
-#ifndef HAVE_SEM_INIT
+#ifdef __APPLE__
   sem_t* p = sem_open(name, O_CREAT, 0600, value);
   return p;
 #else
@@ -72,7 +72,7 @@ static sem_t* create_semaphore(const char* const name, const int value)
 
 static void destroy_semaphore(const char* const name, sem_t* p)
 {
-#ifndef HAVE_SEM_INIT
+#ifdef __APPLE__
   sem_close(p);
   sem_unlink(name);
 #else
index 2a703442437e6b181f197c73be8f3473371e74e6..618b5401aaaa1a3deb11e14f451aa8af5ae7cfe9 100644 (file)
@@ -44,7 +44,7 @@ static int             s_quiet;
 
 static sem_t* create_semaphore(const char* const name)
 {
-#ifndef HAVE_SEM_INIT
+#ifdef __APPLE__
   sem_t* p = sem_open(name, O_CREAT, 0600, 0);
   return p;
 #else
@@ -57,7 +57,7 @@ static sem_t* create_semaphore(const char* const name)
 
 static void destroy_semaphore(const char* const name, sem_t* p)
 {
-#ifndef HAVE_SEM_INIT
+#ifdef __APPLE__
   sem_close(p);
   sem_unlink(name);
 #else