Porting to solaris.

git-svn-id: file:///svn/unbound/trunk@160 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-03-02 09:08:12 +00:00
parent b150a499db
commit 1c24c78462

View file

@ -134,6 +134,9 @@ typedef pthread_key_t ub_thread_key_t;
#ifdef HAVE_SOLARIS_THREADS
/******************* SOLARIS THREADS ************************/
#include <synch.h>
#include <thread.h>
typedef rwlock_t lock_rw_t;
#define lock_rw_init(lock) LOCKRET(rwlock_init(lock, USYNC_THREAD, NULL))
#define lock_rw_destroy(lock) LOCKRET(rwlock_destroy(lock))