X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvol%2Fpartition.h;h=a36d4533a1a1c8fbde8a3370d6668686f12cded8;hp=70dbd95c9b27829c64ff3c1654a612dafc3138ee;hb=7f4a67b8f0e91f013c840fe15b9cd0e0fb672d36;hpb=c43625d91bc104759666629e5a78dff7f74a14fd diff --git a/src/vol/partition.h b/src/vol/partition.h index 70dbd95..a36d453 100644 --- a/src/vol/partition.h +++ b/src/vol/partition.h @@ -48,19 +48,20 @@ #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. */