summaryrefslogtreecommitdiffstats
path: root/src/utils/include/linux_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/include/linux_version.h')
-rw-r--r--src/utils/include/linux_version.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utils/include/linux_version.h b/src/utils/include/linux_version.h
new file mode 100644
index 0000000..a6a1e99
--- /dev/null
+++ b/src/utils/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 */