*/
#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)