From f4c2dbbb0f1ba87b2b6b33a1e683c313bd2006fa Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Thu, 7 Feb 2019 14:02:00 +0900 Subject: [PATCH] CMake: define RHEL_RELEASE_VERSION in config.h for non-rhel kernels Change-Id: Iaffd797a435bcce6717d691c3a02ae63271155b4 --- config.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.h.in b/config.h.in index b91d5a38..2771d0bf 100644 --- a/config.h.in +++ b/config.h.in @@ -11,3 +11,8 @@ /* whether rusage is enabled */ #cmakedefine ENABLE_RUSAGE 1 + +/* for non-RHEL kernels */ +#ifndef RHEL_RELEASE_VERSION +#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) +#endif