diff --git a/src/afs/lock.h b/src/afs/lock.h index 80e3b79233..e3a36ccf00 100644 --- a/src/afs/lock.h +++ b/src/afs/lock.h @@ -86,7 +86,10 @@ typedef struct afs_bozoLock afs_bozoLock_t; #define BEGINMAC do { #define ENDMAC } while (0) -#if defined(AFS_SUN5_ENV) || defined(AFS_OBSD_ENV) +#if defined(AFS_SUN57_ENV) +#define MyPidxx (curthread->t_tid) +#else +#if defined(AFS_OBSD_ENV) || defined(AFS_SUN5_ENV) #define MyPidxx (curproc->p_pid) #else #if defined(AFS_AIX41_ENV) @@ -124,6 +127,7 @@ extern tid_t thread_self(); #endif /* AFS_HPUX101_ENV */ #endif /* AFS_AIX41_ENV */ #endif +#endif /* all locks wait on excl_locked except for READ_LOCK, which waits on readers_reading */ struct afs_lock {