File: ppm_version.h

package info (click to toggle)
falcosecurity-libs 0.1.1dev%2Bgit20220316.e5c53d64-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,732 kB
  • sloc: cpp: 55,770; ansic: 37,330; makefile: 74; sh: 13
file content (20 lines) | stat: -rw-r--r-- 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef UDIG
#include <linux/version.h>
#endif

/**
 * for RHEL kernels, export the release code (which is equal to e.g.
 * RHEL_RELEASE_CODE(8, 1)) under our own name.
 * For other kernels, just use zeros.
 *
 * We need macros that are always defined to use in preprocessor directives
 * to express the required kernel version in a single expression, without
 * a multiline #ifdef soup.
 */
#ifdef RHEL_RELEASE_CODE
#define PPM_RHEL_RELEASE_CODE RHEL_RELEASE_CODE
#define PPM_RHEL_RELEASE_VERSION(x,y) RHEL_RELEASE_VERSION(x,y)
#else
#define PPM_RHEL_RELEASE_CODE 0
#define PPM_RHEL_RELEASE_VERSION(x,y) 0
#endif