aboutsummaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp')
-rw-r--r--devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp b/devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp
new file mode 100644
index 000000000000..05c6b3eb6556
--- /dev/null
+++ b/devel/ice/files/patch-cpp-src-IceUtil-CountDownLatch.cpp
@@ -0,0 +1,21 @@
+--- cpp.orig/src/IceUtil/CountDownLatch.cpp 2011-06-15 21:43:59.000000000 +0200
++++ cpp/src/IceUtil/CountDownLatch.cpp 2012-03-04 20:14:53.000000000 +0100
+@@ -44,10 +44,16 @@
+ #ifdef _WIN32
+ CloseHandle(_event);
+ #else
++#ifndef NDEBUG
+ int rc = 0;
+- rc = pthread_mutex_destroy(&_mutex);
++ rc =
++#endif
++ pthread_mutex_destroy(&_mutex);
+ assert(rc == 0);
+- rc = pthread_cond_destroy(&_cond);
++#ifndef NDEBUG
++ rc =
++#endif
++ pthread_cond_destroy(&_cond);
+ assert(rc == 0);
+ #endif
+ }