Skip to content

Commit 6236e48

Browse files
Skip 60/05 on OS X
1 parent 5f32337 commit 6236e48

File tree

1 file changed

+10
-0
lines changed
  • tests/regression/60-doublelocking

1 file changed

+10
-0
lines changed

tests/regression/60-doublelocking/05-rec.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
#include<unistd.h>
66
#include <assert.h>
77

8+
#ifdef __APPLE__
9+
// OS X does not have PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
10+
int main(int argc, char const *argv[])
11+
{
12+
return 0;
13+
}
14+
#else
15+
816
int g;
917

1018
pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
@@ -38,3 +46,5 @@ int main(int argc, char const *argv[])
3846

3947
return 0;
4048
}
49+
}
50+
#endif

0 commit comments

Comments
 (0)