aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/mutex.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-08-14 13:30:59 +0200
committerTobias Brunner <tobias@strongswan.org>2009-08-14 13:30:59 +0200
commit3901937d142cc9dc81ee22d99c8c596e9317c139 (patch)
treefcb90d9b12c38f4466b1742e5dd04324ab64278b /src/libstrongswan/utils/mutex.c
parent8b6a5ce5ba297a84058161ad01e9cf6abfdf71a3 (diff)
downloadstrongswan-3901937d142cc9dc81ee22d99c8c596e9317c139.tar.bz2
strongswan-3901937d142cc9dc81ee22d99c8c596e9317c139.tar.xz
OpenSolaris defines MUTEX_DEFAULT therefore we rename the members of the enums mutex/condvar/rwlock_type_t.
Diffstat (limited to 'src/libstrongswan/utils/mutex.c')
-rw-r--r--src/libstrongswan/utils/mutex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstrongswan/utils/mutex.c b/src/libstrongswan/utils/mutex.c
index 8b3a25201..a6c39e94c 100644
--- a/src/libstrongswan/utils/mutex.c
+++ b/src/libstrongswan/utils/mutex.c
@@ -276,7 +276,7 @@ mutex_t *mutex_create(mutex_type_t type)
{
switch (type)
{
- case MUTEX_RECURSIVE:
+ case MUTEX_TYPE_RECURSIVE:
{
private_r_mutex_t *this = malloc_thing(private_r_mutex_t);
@@ -292,7 +292,7 @@ mutex_t *mutex_create(mutex_type_t type)
return &this->generic.public;
}
- case MUTEX_DEFAULT:
+ case MUTEX_TYPE_DEFAULT:
default:
{
private_mutex_t *this = malloc_thing(private_mutex_t);
@@ -416,7 +416,7 @@ condvar_t *condvar_create(condvar_type_t type)
{
switch (type)
{
- case CONDVAR_DEFAULT:
+ case CONDVAR_TYPE_DEFAULT:
default:
{
private_condvar_t *this = malloc_thing(private_condvar_t);
@@ -488,7 +488,7 @@ rwlock_t *rwlock_create(rwlock_type_t type)
{
switch (type)
{
- case RWLOCK_DEFAULT:
+ case RWLOCK_TYPE_DEFAULT:
default:
{
private_rwlock_t *this = malloc_thing(private_rwlock_t);