mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-26 00:22:54 -05:00
Porting to solaris.
git-svn-id: file:///svn/unbound/trunk@160 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b150a499db
commit
1c24c78462
1 changed files with 3 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue