Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / include / linux / lustre_user.h
index a549214..cc5a4f6 100644 (file)
@@ -57,6 +57,9 @@ typedef struct stat64   lstat_t;
 #endif
 
 #ifndef LPU64
+#if !defined(BITS_PER_LONG) && defined(__WORDSIZE)
+#define BITS_PER_LONG __WORDSIZE
+#endif
 /* x86_64 defines __u64 as "long" in userspace, but "long long" in the kernel */
 #if defined(__x86_64__) && defined(__KERNEL__)
 # define LPU64 "%Lu"