diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:11:32 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:11:32 +0000 |
commit | d2c8928d306861a39cc7c341e09f7e66b8f1c649 (patch) | |
tree | 4c11599bf8b3287a2c57ea361b3d9e47a09b58c4 /cvsfs.h | |
parent | 43df67ad041fda13c795b8b91fc45e8b71c047cf (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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |