| Paste number 8820: | gamin-0.1.0 patch |
| Pasted by: | sbp |
| When: | 6 years, 11 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+6T0 |
| Channel: | #swhack |
| Paste contents: |
$ diff -Naur old+gamin-0.1.0 gamin-0.1.0
diff -Naur old+gamin-0.1.0/libgamin/gam_data.c gamin-0.1.0/libgamin/gam_data.c
--- old+gamin-0.1.0/libgamin/gam_data.c 2005-05-10 17:26:10.000000000 +0100
+++ gamin-0.1.0/libgamin/gam_data.c 2005-06-04 21:07:15.408000000 +0100
@@ -471,7 +471,11 @@
}
if (is_threaded > 0) {
pthread_mutexattr_init(&attr);
+#ifndef PTHREAD_MUTEX_RECURSIVE_NP
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+#endif
pthread_mutex_init(&ret->lock, &attr);
pthread_mutexattr_destroy(&attr);
}
This paste has no annotations.