From b6f13e802ec45ccf37b045086d03dfaba84ebeb6 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 1 Jun 2013 18:00:07 +0200 Subject: [PATCH] backports: add RedHat version 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 Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/version.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 backport/backport-include/linux/version.h diff --git a/backport/backport-include/linux/version.h b/backport/backport-include/linux/version.h new file mode 100644 index 000000000000..d356613d549e --- /dev/null +++ b/backport/backport-include/linux/version.h @@ -0,0 +1,9 @@ +#include_next + +#ifndef RHEL_RELEASE_VERSION +#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) +#endif + +#ifndef RHEL_RELEASE_CODE +#define RHEL_RELEASE_CODE 0 +#endif -- 2.30.2