Whamcloud - gitweb
temporarily modification for compilation on uml2.5.59
authorshorthair <shorthair>
Mon, 17 Feb 2003 16:20:58 +0000 (16:20 +0000)
committershorthair <shorthair>
Mon, 17 Feb 2003 16:20:58 +0000 (16:20 +0000)
(some struct has changed in 2.5, such as timespec, kdev_t)

lustre/mds/mds_open.c

index ab2275c..5278abc 100644 (file)
 #include <linux/init.h>
 #include <linux/obd_class.h>
 #include <linux/random.h>
-#include <linux/locks.h>
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
 #include <linux/buffer_head.h>
 #include <linux/workqueue.h>
+#else
+#include <linux/locks.h>
 #endif
 #include <linux/obd_lov.h>
 #include <linux/lustre_mds.h>