backports: add RedHat version
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 1 Jun 2013 16:00:07 +0000 (18:00 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 6 Jun 2013 04:35:49 +0000 (21:35 -0700)
We have to deactivate some backports when a RedHat kernel was found,
the LINUX_BACKPORT preprocessor statement is not sufficient enough.
This is done based on RHEL_RELEASE_CODE. When backports is compiled
against a non RedHat kernel the RHEL_RELEASE_CODE is set to 0, so these
defines are defined to some value.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/version.h [new file with mode: 0644]

diff --git a/backport/backport-include/linux/version.h b/backport/backport-include/linux/version.h
new file mode 100644 (file)
index 0000000..d356613
--- /dev/null
@@ -0,0 +1,9 @@
+#include_next <linux/version.h>
+
+#ifndef RHEL_RELEASE_VERSION
+#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
+#endif
+
+#ifndef RHEL_RELEASE_CODE
+#define RHEL_RELEASE_CODE 0
+#endif