summaryrefslogtreecommitdiff
path: root/cvsfs.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:11:32 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:11:32 +0000
commitd2c8928d306861a39cc7c341e09f7e66b8f1c649 (patch)
tree4c11599bf8b3287a2c57ea361b3d9e47a09b58c4 /cvsfs.h
parent43df67ad041fda13c795b8b91fc45e8b71c047cf (diff)
Fix build against libpthread
* configure.ac: Link against libpthread instead of libthreads. Explicitly link against libshouldbeinlibc. * cvs_tree.c: Include <pthread.h>, use pthread functions instead of Mach cthreads functions. * cvsfs.h: Likewise. * netfs.c: Likewise. * node.c: Likewise.
Diffstat (limited to 'cvsfs.h')
-rw-r--r--cvsfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cvsfs.h b/cvsfs.h
index 3ba85a4f0..43970a7db 100644
--- a/cvsfs.h
+++ b/cvsfs.h
@@ -14,11 +14,11 @@
#ifndef CVSFS_CONFIG_H
#define CVSFS_CONFIG_H
+#include <sys/types.h>
#include <maptime.h>
extern volatile struct mapped_time_value *cvsfs_maptime;
#include <stdio.h>
-#include <rwlock.h>
typedef struct {
@@ -92,7 +92,7 @@ struct revision {
/* locking mechanism for the revision structure, needs to be held,
* on read/write access to contents field.
*/
- struct rwlock lock;
+ pthread_rwlock_t lock;
};
@@ -133,7 +133,7 @@ struct netnode {
*
* furthermore access to node pointer must be locked.
*/
- struct rwlock lock;
+ pthread_rwlock_t lock;
};
/* pointer to root netnode */