From e0e7250cf34b03edb61195f0e3d28aeb85922372 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 1 Nov 2010 18:39:58 +0100 Subject: 0.4.3-portable-build1 --- threading_pthread.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'threading_pthread.c') diff --git a/threading_pthread.c b/threading_pthread.c index 66db5844..9b6cc277 100644 --- a/threading_pthread.c +++ b/threading_pthread.c @@ -21,6 +21,9 @@ #include #include #include "threading.h" +#ifdef HAVE_CONFIG_H +#include +#endif intptr_t thread_start (void (*fn)(void *ctx), void *ctx) { @@ -69,12 +72,14 @@ thread_start_low_priority (void (*fn)(void *ctx), void *ctx) { fprintf (stderr, "pthread_create failed: %s\n", strerror (s)); return 0; } +#if !PORTABLE s = pthread_setschedprio (tid, minprio); if (s != 0) { fprintf (stderr, "pthread_setschedprio failed: %s\n", strerror (s)); pthread_cancel (tid); return 0; } +#endif s = pthread_attr_destroy (&attr); if (s != 0) { -- cgit v1.2.3