diff options
author | tron <tron> | 2003-01-28 18:28:17 +0000 |
---|---|---|
committer | tron <tron> | 2003-01-28 18:28:17 +0000 |
commit | dd59cc44583d0eb2706e0ffbb9b06b8eacd2c90d (patch) | |
tree | 67211d94d6c77252a27e28a40981bd1175e5fca7 | |
parent | 1d5ed390f71f7165fc08d769368bca8a1dd76524 (diff) | |
download | pkgsrc-dd59cc44583d0eb2706e0ffbb9b06b8eacd2c90d.tar.gz |
Check for symbol "_POSIX_THREAD_PRIORITY_SCHEDULING" instead of
"__NetBSD__" to detect existance of pthread_attr_getschedparam() and
pthread_attr_setschedparam() as suggested by Nathan J. Williams.
-rw-r--r-- | devel/glib2/distinfo | 4 | ||||
-rw-r--r-- | devel/glib2/patches/patch-aa | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/devel/glib2/distinfo b/devel/glib2/distinfo index 70b950e0341..146d5bd45c9 100644 --- a/devel/glib2/distinfo +++ b/devel/glib2/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.12 2003/01/28 10:15:42 tron Exp $ +$NetBSD: distinfo,v 1.13 2003/01/28 18:28:17 tron Exp $ SHA1 (glib-2.2.0.tar.bz2) = ec3c19d2ebb498e1036cec8fcc8ace57331ce290 Size (glib-2.2.0.tar.bz2) = 1494036 bytes -SHA1 (patch-aa) = 667af57d808a64697e9af88db5048e8e7782eaef +SHA1 (patch-aa) = a72d9f5dcf0902783aed02650450dca3847b46a7 diff --git a/devel/glib2/patches/patch-aa b/devel/glib2/patches/patch-aa index 5fa7b83c334..f7809924ca7 100644 --- a/devel/glib2/patches/patch-aa +++ b/devel/glib2/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.6 2003/01/28 10:15:44 tron Exp $ +$NetBSD: patch-aa,v 1.7 2003/01/28 18:28:17 tron Exp $ --- gthread/gthread-posix.c.orig 2002-11-04 21:04:55.000000000 +0100 +++ gthread/gthread-posix.c 2003-01-28 11:05:52.000000000 +0100 @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.6 2003/01/28 10:15:44 tron Exp $ #endif -#if defined (POSIX_MIN_PRIORITY) && defined (POSIX_MAX_PRIORITY) -+#if defined (POSIX_MIN_PRIORITY) && defined (POSIX_MAX_PRIORITY) && !defined(__NetBSD__) ++#if defined (POSIX_MIN_PRIORITY) && defined (POSIX_MAX_PRIORITY) && !defined(_POSIX_THREAD_PRIORITY_SCHEDULING) # define HAVE_PRIORITIES 1 static gint priority_normal_value; # ifdef __FreeBSD__ |