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
This commit is contained in:
Love Hörnquist Åstrand
2004-12-18 16:03:38 +00:00
parent fffbadb908
commit 0043daaaa3

View File

@@ -48,11 +48,13 @@
/* assume headers already included */ /* 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 * NetBSD have a thread lib that we can use that part of libc that
* works regardless if application are linked to pthreads or not. * 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 <threadlib.h> #include <threadlib.h>
@@ -79,7 +81,7 @@
#define HEIMDAL_getspecific(k) thr_getspecific(k) #define HEIMDAL_getspecific(k) thr_getspecific(k)
#define HEIMDAL_key_delete(k) thr_keydelete(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 <pthread.h> #include <pthread.h>