Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 395408 Details for
Bug 538474
dev-libs/libgamin-0.1.10-r6 with sys-libs/musl - error: ‘PTHREAD_MUTEX_RECURSIVE_NP’ undeclared
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against gamin git
gamin.patch (text/plain), 1.26 KB, created by
Felix Janda
on 2015-02-02 19:15:57 UTC
(
hide
)
Description:
Patch against gamin git
Filename:
MIME Type:
Creator:
Felix Janda
Created:
2015-02-02 19:15:57 UTC
Size:
1.26 KB
patch
obsolete
>From b081e7b81e62a45db8b2307781a6f18b1bbff800 Mon Sep 17 00:00:00 2001 >From: Felix Janda <felix.janda@posteo.de> >Date: Mon, 2 Feb 2015 20:08:40 +0100 >Subject: [PATCH] Use PTHREAD_MUTEX_RECURSIVE unconditionally > >Previously the nonportable PTHREAD_MUTEX_RECURSIVE_NP had been >used for portability with glibc. However since 1998 glibc also >has PTHREAD_MUTEX_RECURSIVE if _XOPEN_SOURCE is >= 500. So we >can use the portable version for all known systems. >--- > libgamin/gam_data.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/libgamin/gam_data.c b/libgamin/gam_data.c >index c0ea893..4d6a0c8 100644 >--- a/libgamin/gam_data.c >+++ b/libgamin/gam_data.c >@@ -2,6 +2,7 @@ > * gam_data.c: implementation of the connection data handling of libgamin > */ > >+#define _XOPEN_SOURCE 700 > #include <stdlib.h> > #include <string.h> /* for memset */ > #include <stdio.h> >@@ -470,11 +471,7 @@ gamin_data_new(void) > } > if (is_threaded > 0) { > pthread_mutexattr_init(&attr); >-#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP) >- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); >-#else > pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); >-#endif > pthread_mutex_init(&ret->lock, &attr); > pthread_mutexattr_destroy(&attr); > } >-- >2.0.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 538474
:
395350
| 395408