summaryrefslogtreecommitdiff
path: root/mount/my_dev_t.h
diff options
context:
space:
mode:
Diffstat (limited to 'mount/my_dev_t.h')
-rw-r--r--mount/my_dev_t.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mount/my_dev_t.h b/mount/my_dev_t.h
index 8bb2ea4a..11825e27 100644
--- a/mount/my_dev_t.h
+++ b/mount/my_dev_t.h
@@ -4,6 +4,10 @@
#include <linux/posix_types.h>
#include <linux/version.h>
+#ifndef KERNEL_VERSION
+#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(1,3,78)
/* for i386 - alpha uses unsigned int */
#define my_dev_t unsigned short