Make VLockFile not DAFS-specific
[openafs.git] / src / vol / partition.h
index 70dbd95..a36d453 100644 (file)
 #define VICE_ALWAYSATTACH_FILE "AlwaysAttach"
 #endif
 
-#ifdef AFS_DEMAND_ATTACH_FS
-
 /**
  * abstraction for files used for file-locking.
  */
 struct VLockFile {
     FD_t fd;                /**< fd holding the lock(s) */
     char *path;             /**< path to the lock file */
+    int refcount;           /**< how many locks we have on the file */
 
+#ifdef AFS_PTHREAD_ENV
     pthread_mutex_t mutex;  /**< lock for the VLockFile struct */
-    int refcount;           /**< how many locks we have on the file */
+#endif /* AFS_PTHREAD_ENV */
 };
 
+#ifdef AFS_DEMAND_ATTACH_FS
 /*
  * flag bits for 'flags' in struct VDiskLock.
  */