Use pthread's own rwlock, if available

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@223 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Matti Aarnio 2008-03-22 14:42:18 +00:00
parent d88cb613d5
commit 7d861f9106
2 changed files with 4 additions and 3 deletions

View File

@ -31,8 +31,8 @@
#include <errno.h> #include <errno.h>
#include "rwlock.h" #include "rwlock.h"
#ifndef HAVE_PTHREAD_RWLOCK #ifndef PTHREAD_RWLOCK_INITIALIZER
// #ifndef HAVE_PTHREAD_RWLOCK
/* /*
* Initialize a read-write lock * Initialize a read-write lock

View File

@ -23,7 +23,8 @@
#include <pthread.h> #include <pthread.h>
#ifdef HAVE_PTHREAD_RWLOCK #ifdef PTHREAD_RWLOCK_INITIALIZER
// #ifdef HAVE_PTHREAD_RWLOCK
#define rwlock_t pthread_rwlock_t #define rwlock_t pthread_rwlock_t