9344acf1ad
changes: -minor feature additions to the command line tools -C++ API: Added support for Szip -bugfixes pkgsrc changes: -fixes for the cxx option (should be a separate pkg) -fixes for the threadsafe option -- replaced a pthread_equal() by a simple "==" to make it usable with non-threaded apps (not 100% portable, but should be fine for the platforms in question) The shared libraries should not be linked against libpthread, but that would require serious changes to the autoconf/make machinery so I've left it alone for now. If that is fixed, "threadsafe" could be made default. -Don't try to strip scripts on install.
13 lines
522 B
Text
13 lines
522 B
Text
$NetBSD: patch-ba,v 1.1 2007/09/18 18:58:11 drochner Exp $
|
|
|
|
--- ./src/H5TS.c.orig 2007-09-18 15:59:02.000000000 +0200
|
|
+++ ./src/H5TS.c
|
|
@@ -150,7 +150,7 @@ H5TS_mutex_lock(H5TS_mutex_t *mutex)
|
|
if (ret_value)
|
|
return ret_value;
|
|
|
|
- if (mutex->owner_valid && pthread_equal(pthread_self(), mutex->owner_thread)) {
|
|
+ if (mutex->owner_valid && pthread_self() == mutex->owner_thread) {
|
|
/* already owned by self - increment count */
|
|
mutex->lock_count++;
|
|
} else if (!mutex->owner_valid) {
|