From b811e4f91e756643dc2c7da7179ba63e2e0f5803 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Fri, 7 May 2010 00:47:53 -0400 Subject: [PATCH] Define osi_procname for FBSD The kernel linker doesn't like to load modules with unresolved (implicitly-defined) symbols (understandably). Make it happy. Change-Id: I23fdbb9c9e07a0c583580f5c5eee577a04fae278 Reviewed-on: http://gerrit.openafs.org/1925 Reviewed-by: Simon Wilkinson Reviewed-by: sanket Reviewed-by: Derrick Brashear Tested-by: Benjamin Kaduk --- src/afs/FBSD/osi_machdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/FBSD/osi_machdep.h b/src/afs/FBSD/osi_machdep.h index dd5e965f8a..eddb35b288 100644 --- a/src/afs/FBSD/osi_machdep.h +++ b/src/afs/FBSD/osi_machdep.h @@ -150,4 +150,6 @@ extern struct thread *afs_global_owner; #undef USERPRI #define USERPRI splx(splvar) +#define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size) + #endif /* _OSI_MACHDEP_H_ */