diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-11-08 17:11:31 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-11-08 17:11:31 +0000 |
commit | 41fa1e8a79f8a5b5bacde41ad48745cf56011fcc (patch) | |
tree | 7b2de8e00ee5ff9e7f38c361c52e3053a7276b23 /science/cdo/files/patch-libcdi-src-namespace.c | |
parent | Update to 2.02.05 (diff) |
Update to 1.9.9
Changes: https://code.mpimet.mpg.de/projects/cdo/news
Diffstat (limited to 'science/cdo/files/patch-libcdi-src-namespace.c')
-rw-r--r-- | science/cdo/files/patch-libcdi-src-namespace.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/science/cdo/files/patch-libcdi-src-namespace.c b/science/cdo/files/patch-libcdi-src-namespace.c new file mode 100644 index 000000000000..747e642168b3 --- /dev/null +++ b/science/cdo/files/patch-libcdi-src-namespace.c @@ -0,0 +1,16 @@ +--- libcdi/src/namespace.c.orig 2020-01-21 20:19:01 UTC ++++ libcdi/src/namespace.c +@@ -88,11 +88,13 @@ static pthread_mutex_t namespaceMutex; + static void + namespaceInitialize(void) + { ++#if defined(PTHREAD_MUTEXATTR) + pthread_mutexattr_t ma; + pthread_mutexattr_init(&ma); + pthread_mutexattr_settype(&ma, PTHREAD_MUTEX_RECURSIVE); + pthread_mutex_init(&namespaceMutex, &ma); + pthread_mutexattr_destroy(&ma); ++#endif + } + + # define NAMESPACE_LOCK() pthread_mutex_lock(&namespaceMutex) |