Move GLOCK initialisation to platform directories
[openafs.git] / src / afs / SOLARIS / osi_machdep.h
index 56b2bdd..0faf363 100644 (file)
@@ -81,6 +81,8 @@ extern kmutex_t afs_global_lock;
 #define AFS_GLOCK()    mutex_enter(&afs_global_lock);
 #define AFS_GUNLOCK()  mutex_exit(&afs_global_lock);
 #define ISAFS_GLOCK()  mutex_owned(&afs_global_lock)
+#define osi_InitGlock() \
+       mutex_init(&afs_global_lock, "afs_global_lock", MUTEX_DEFAULT, NULL);
 #endif