From 0043daaaa35158978172a7f10a75aa63196531d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 18 Dec 2004 16:03:38 +0000 Subject: [PATCH] NetBSD 2.99.11 (any maybe 2.1) just needs pthread.h, threadlib is dead git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14409 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/heim_threads.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/krb5/heim_threads.h b/lib/krb5/heim_threads.h index 37d3f9818..c55049949 100644 --- a/lib/krb5/heim_threads.h +++ b/lib/krb5/heim_threads.h @@ -48,11 +48,13 @@ /* assume headers already included */ -#if defined(__NetBSD__) && __NetBSD_Version__ >= 106120000 && defined(ENABLE_PTHREAD_SUPPORT) +#if defined(__NetBSD__) && __NetBSD_Version__ >= 106120000 && __NetBSD_Version__< 299001200 && defined(ENABLE_PTHREAD_SUPPORT) /* * NetBSD have a thread lib that we can use that part of libc that * works regardless if application are linked to pthreads or not. + * NetBSD newer then 2.99.11 just use pthread.h, and the same thing + * will happen. */ #include @@ -79,7 +81,7 @@ #define HEIMDAL_getspecific(k) thr_getspecific(k) #define HEIMDAL_key_delete(k) thr_keydelete(k) -#elif defined(ENABLE_PTHREAD_SUPPORT) && !defined(__NetBSD__) +#elif defined(ENABLE_PTHREAD_SUPPORT) && (!defined(__NetBSD__) || __NetBSD_Version__ >= 299001200) #include