aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-05-09 13:29:17 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-05-09 13:29:17 +0000
commitc2a33ee222a25f3f5d1c90ca4664e12e0d5bb096 (patch)
tree352bb2995d1c407828e5bb65c46b78ba7b5161fd /lib/fuse_i.h
parent21019c96f5f9f8d5f7630acc2e897da077c0f097 (diff)
downloadlibfuse-c2a33ee222a25f3f5d1c90ca4664e12e0d5bb096.tar.gz
fix
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 3bdfb00..99a35de 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -6,6 +6,10 @@
See the file COPYING.LIB.
*/
+/* For pthread_rwlock_t */
+#define _GNU_SOURCE
+
+#include <config.h>
#include "fuse.h"
#include <pthread.h>
@@ -25,6 +29,7 @@ struct fuse {
unsigned int hidectr;
pthread_mutex_t lock;
pthread_mutex_t worker_lock;
+ pthread_rwlock_t tree_lock;
int numworker;
int numavail;
volatile int exited;