3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- glib-1.2.10/gthread/gthread-posix.c~posix-conf-changes
7 +++ glib-1.2.10/gthread/gthread-posix.c
11 result = pthread_mutex_trylock ((pthread_mutex_t *) mutex);
12 -#ifdef HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX
13 +#ifdef G_THREADS_IMPL_POSIX
16 posix_check_for_error (result);
18 result = pthread_cond_timedwait ((pthread_cond_t *) cond,
19 (pthread_mutex_t *) entered_mutex,
21 -#ifdef HAVE_PTHREAD_COND_TIMEDWAIT_POSIX
22 +#ifdef G_THREADS_IMPL_POSIX
23 timed_out = (result == ETIMEDOUT);
25 timed_out = (result == -1 && errno == EAGAIN);
30 -#ifdef HAVE_PTHREAD_GETSPECIFIC_POSIX
31 +#ifdef G_THREADS_IMPL_POSIX
32 return pthread_getspecific (*(pthread_key_t *) private_key);
33 -#else /* HAVE_PTHREAD_GETSPECIFIC_POSIX */
34 +#else /* G_THREADS_IMPL_DCE */
37 pthread_getspecific (*(pthread_key_t *) private_key, &data);
40 -#endif /* HAVE_PTHREAD_GETSPECIFIC_POSIX */
41 +#endif /* G_THREADS_IMPL_POSIX*/
44 static GThreadFunctions g_thread_functions_for_glib_use_default =