diff options
Diffstat (limited to 'src/compat/version/linux/version.h')
-rw-r--r-- | src/compat/version/linux/version.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compat/version/linux/version.h b/src/compat/version/linux/version.h new file mode 100644 index 0000000..90988b3 --- /dev/null +++ b/src/compat/version/linux/version.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2015-2021 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ + +#include_next <linux/version.h> +#undef KERNEL_VERSION +#define KERNEL_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + (c)) +#undef LINUX_VERSION_CODE +#define LINUX_VERSION_CODE KERNEL_VERSION(COMPAT_VERSION, COMPAT_PATCHLEVEL, COMPAT_SUBLEVEL) |