diff options
Diffstat (limited to 'debian/patches/libpthread_mutex_owner.patch')
-rw-r--r-- | debian/patches/libpthread_mutex_owner.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/libpthread_mutex_owner.patch b/debian/patches/libpthread_mutex_owner.patch new file mode 100644 index 00000000..466cffae --- /dev/null +++ b/debian/patches/libpthread_mutex_owner.patch @@ -0,0 +1,22 @@ +--- + libpthread/sysdeps/generic/pt-mutex-trylock.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/libpthread/sysdeps/generic/pt-mutex-trylock.c ++++ b/libpthread/sysdeps/generic/pt-mutex-trylock.c +@@ -34,6 +34,7 @@ __pthread_mutex_trylock (struct __pthrea + if (__pthread_spin_trylock (&mutex->__held) == 0) + /* Acquired the lock. */ + { ++#if defined(ALWAYS_TRACK_MUTEX_OWNER) + #ifndef NDEBUG + self = _pthread_self (); + if (self) +@@ -45,6 +46,7 @@ __pthread_mutex_trylock (struct __pthrea + mutex->owner = _pthread_self (); + } + #endif ++#endif + + if (mutex->attr) + switch (mutex->attr->mutex_type) |