summaryrefslogtreecommitdiffstats
path: root/libblkid/include/linux_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid/include/linux_version.h')
-rw-r--r--libblkid/include/linux_version.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libblkid/include/linux_version.h b/libblkid/include/linux_version.h
new file mode 100644
index 000000000..a6a1e99c7
--- /dev/null
+++ b/libblkid/include/linux_version.h
@@ -0,0 +1,14 @@
+#ifndef LINUX_VERSION_H
+#define LINUX_VERSION_H
+
+#ifdef HAVE_LINUX_VERSION_H
+# include <linux/version.h>
+#endif
+
+#ifndef KERNEL_VERSION
+# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#endif
+
+int get_linux_version(void);
+
+#endif /* LINUX_VERSION_H */