Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Thu, 14 Jul 2005 21:58:57 +0000 (21:58 +0000)
committeradilger <adilger>
Thu, 14 Jul 2005 21:58:57 +0000 (21:58 +0000)
Fix compile problem for LDLM_NUM_THREADS macro in liblustre case.
b=6422

lustre/include/liblustre.h

index 3b5d977..b02f5e4 100644 (file)
@@ -89,6 +89,9 @@ typedef unsigned short umode_t;
 #ifndef smp_processor_id
 #define smp_processor_id() 0
 #endif
+#ifndef smp_num_cpus
+#define smp_num_cpus 1
+#endif
 
 /* always adopt 2.5 definitions */
 #define KERNEL_VERSION(a,b,c) ((a)*100+(b)*10+c)