patch-2.4.2 linux/include/linux/kdev_t.h
Next file: linux/include/linux/kernelcapi.h
Previous file: linux/include/linux/isdn.h
Back to the patch index
Back to the overall index
-  Lines: 24
-  Date:
Fri Feb 16 16:06:17 2001
-  Orig file: 
v2.4.1/linux/include/linux/kdev_t.h
-  Orig date: 
Mon Jan 24 11:04:37 2000
diff -u --recursive --new-file v2.4.1/linux/include/linux/kdev_t.h linux/include/linux/kdev_t.h
@@ -1,6 +1,6 @@
 #ifndef _LINUX_KDEV_T_H
 #define _LINUX_KDEV_T_H
-#ifdef __KERNEL__
+#if defined(__KERNEL__) || defined(_LVM_H_INCLUDE)
 /*
 As a preparation for the introduction of larger device numbers,
 we introduce a type kdev_t to hold them. No information about
@@ -101,7 +101,7 @@
 	return MKDEV(major, minor);
 }
 
-#else /* __KERNEL__ */
+#else /* __KERNEL__ || _LVM_H_INCLUDE */
 
 /*
 Some programs want their definitions of MAJOR and MINOR and MKDEV
@@ -110,5 +110,5 @@
 #define MAJOR(dev)	((dev)>>8)
 #define MINOR(dev)	((dev) & 0xff)
 #define MKDEV(ma,mi)	((ma)<<8 | (mi))
-#endif /* __KERNEL__ */
+#endif /* __KERNEL__ || _LVM_H_INCLUDE */
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)