diff --git a/src/afs/afs_osi.h b/src/afs/afs_osi.h index 5f6588b031..488334a525 100644 --- a/src/afs/afs_osi.h +++ b/src/afs/afs_osi.h @@ -185,7 +185,7 @@ typedef struct timeval osi_timeval_t; */ #ifdef AFS_FBSD50_ENV /* should use curthread, but 'ps' can't display it */ -#define osi_ThreadUnique() curproc +#define osi_ThreadUnique() (curproc->p_pid) #elif defined(AFS_LINUX_ENV) #define osi_ThreadUnique() (current->pid) #elif defined(UKERNEL)