diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-05-14 06:34:47 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-05-14 06:34:47 +0800 |
commit | 27429b803ffd913ba8cc80ee59eb9d494697d669 (patch) | |
tree | 11081dc2d7d936f263648ec58c4fd48120cfb7c8 /devel/glib20 | |
parent | 867e87b458914e9dc633b490780aefa538767979 (diff) | |
download | marcuscom-ports-experimental-27429b803ffd913ba8cc80ee59eb9d494697d669.tar.gz marcuscom-ports-experimental-27429b803ffd913ba8cc80ee59eb9d494697d669.tar.zst marcuscom-ports-experimental-27429b803ffd913ba8cc80ee59eb9d494697d669.zip |
Make this patch a bit more portable.
git-svn-id: svn://creme-brulee.marcuscom.com/ports-experimental/trunk@17440 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/glib20')
-rw-r--r-- | devel/glib20/files/patch-glib_gthread-posix.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/devel/glib20/files/patch-glib_gthread-posix.c b/devel/glib20/files/patch-glib_gthread-posix.c index 34d479c..0b35056 100644 --- a/devel/glib20/files/patch-glib_gthread-posix.c +++ b/devel/glib20/files/patch-glib_gthread-posix.c @@ -1,23 +1,20 @@ ---- glib/gthread-posix.c.orig 2012-05-07 20:32:49.000000000 -0500 -+++ glib/gthread-posix.c 2012-05-07 20:33:45.000000000 -0500 -@@ -89,20 +89,9 @@ +--- glib/gthread-posix.c.orig 2012-05-13 18:23:49.000000000 -0400 ++++ glib/gthread-posix.c 2012-05-13 18:30:37.000000000 -0400 +@@ -89,7 +89,7 @@ g_mutex_impl_new (void) if G_UNLIKELY (mutex == NULL) g_thread_abort (errno, "malloc"); -#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP -- pthread_mutexattr_t attr; -- pthread_mutexattr_init (&attr); -- pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_ADAPTIVE_NP); -- pattr = &attr; --#endif -- ++#if defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) && !defined(__FreeBSD__) + pthread_mutexattr_t attr; + pthread_mutexattr_init (&attr); + pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_ADAPTIVE_NP); +@@ -99,7 +99,7 @@ g_mutex_impl_new (void) if G_UNLIKELY ((status = pthread_mutex_init (mutex, pattr)) != 0) g_thread_abort (status, "pthread_mutex_init"); -#ifdef PTHREAD_ADAPTIVE_MUTEX_NP -- pthread_mutexattr_destroy (&attr); --#endif -- - return mutex; - } ++#if defined(PTHREAD_ADAPTIVE_MUTEX_NP) && !defined(__FreeBSD__) + pthread_mutexattr_destroy (&attr); + #endif |