Skip to content

Commit

Permalink
CMake: define RHEL_RELEASE_VERSION in config.h for non-rhel kernels
Browse files Browse the repository at this point in the history
Change-Id: Iaffd797a435bcce6717d691c3a02ae63271155b4
  • Loading branch information
Dominique Martinet authored and martinetd committed Feb 14, 2019
1 parent b7c9bb6 commit f4c2dbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4c2dbb

Please sign in to comment.