Whamcloud - gitweb
LU-2044 libcfs: fix to build libcfs without pthreads
[fs/lustre-release.git] / libcfs / include / libcfs / libcfs_private.h
index 0bf8c03..aaaac7c 100644 (file)
@@ -489,11 +489,13 @@ struct cfs_percpt_lock {
 };
 
 # else /* !HAVE_LIBPTHREAD */
-#define CFS_PERCPT_LOCK_MAGIC          0xbabecafe;
 
 struct cfs_percpt_lock {
        int                     pcl_lock;
 };
+
+static const struct cfs_percpt_lock CFS_PERCPT_LOCK_MAGIC;
+
 # endif /* HAVE_LIBPTHREAD */
 # define cfs_percpt_lock_num(pcl)        1
 #endif /* __KERNEL__ */