mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-17 19:54:00 +00:00
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
16 lines
506 B
Diff
16 lines
506 B
Diff
Index: samba-4.6.2/ctdb/tests/src/test_mutex_raw.c
|
|
===================================================================
|
|
--- samba-4.6.2.orig/ctdb/tests/src/test_mutex_raw.c
|
|
+++ samba-4.6.2/ctdb/tests/src/test_mutex_raw.c
|
|
@@ -166,8 +166,10 @@ int main(int argc, const char **argv)
|
|
if (ret == 0) {
|
|
pthread_mutex_unlock(mutex);
|
|
}
|
|
+#ifdef __GLIBC__
|
|
} else if (ret == EBUSY) {
|
|
printf("pid=%u\n", mutex->__data.__owner);
|
|
+#endif
|
|
} else if (ret == 0) {
|
|
pthread_mutex_unlock(mutex);
|
|
}
|