summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:51:34 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:51:34 +0000
commit3f06ded61ba1373f44e87d1f6d266fb3baa29314 (patch)
tree90d28ef7d22402021f3a4fddd41c6d2bc674f629 /cache.h
parent7fc534e167e8ebf3e7267fca5db7e34c9bc15538 (diff)
Fix build against libpthread
* Makefile (LDFLAGS): Replace -lthreads with -lpthread. * cache.c: Use pthread functions instead of cthreads functions. * cache.h: Likewise. * debug.c: Likewise. * netfs.c: Likewise. * tarfs.c: Likewise. * tarfs.h: Likewise. * tarlist.c: Likewise. * zipstores.c: Likewise.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 781f2cb52..0c3659ea8 100644
--- a/cache.h
+++ b/cache.h
@@ -46,7 +46,7 @@ struct cache
size_t size;
/* Lock of this cache */
- struct mutex lock;
+ pthread_mutex_t lock;
};
/* Initializes the cache backend. READ is the method that will be called