summaryrefslogtreecommitdiffstats
path: root/include/linux_version.h
diff options
context:
space:
mode:
authorStefan Krah2007-11-06 02:40:13 +0100
committerKarel Zak2007-11-06 02:40:13 +0100
commit5d2c98e1df151739342f1d59a45ca316c2f85068 (patch)
tree192b8f10a6807cca6c42cd50face47ce09ed0b37 /include/linux_version.h
parentpo: update fi.po (from translationproject.org) (diff)
downloadkernel-qcow2-util-linux-5d2c98e1df151739342f1d59a45ca316c2f85068.tar.gz
kernel-qcow2-util-linux-5d2c98e1df151739342f1d59a45ca316c2f85068.tar.xz
kernel-qcow2-util-linux-5d2c98e1df151739342f1d59a45ca316c2f85068.zip
lib: add linux_version.{c,h}
Signed-off-by: Stefan Krah <stefan@bytereef.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/linux_version.h')
-rw-r--r--include/linux_version.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux_version.h b/include/linux_version.h
new file mode 100644
index 000000000..a6a1e99c7
--- /dev/null
+++ b/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 */