From cbaa545fff73e1348ae7b9969f6958f57240434c Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 19 Oct 2004 03:57:05 +0000 Subject: [PATCH] Protect use of pthread functions with #ifdef HAVE_PTHREAD_H. --- loader/kthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/kthread.c b/loader/kthread.c index 48d7c4afe32..f27b3de71e3 100644 --- a/loader/kthread.c +++ b/loader/kthread.c @@ -392,7 +392,7 @@ void wine_pthread_abort_thread( int status ) * If they are not available, the libc defaults to * non-threadsafe operation (not good). */ -#if defined(__GLIBC__) || defined(__FreeBSD__) +#if defined(HAVE_PTHREAD_H) && (defined(__GLIBC__) || defined(__FreeBSD__)) /* adapt as necessary (a construct like this is used in glibc sources) */ #define strong_alias(orig, alias) \ @@ -1010,4 +1010,4 @@ static struct pthread_functions libc_pthread_functions = _pthread_cleanup_pop /* ptr__pthread_cleanup_pop */ }; -#endif /* __GLIBC__ || __FREEBSD__ */ +#endif /* HAVE_PTHREAD_H && (__GLIBC__ || __FREEBSD__) */