mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
Preprocessor doesn't stop unwinding macroses in #if clauses if one of the conditions is false resulting in the following error when trying to build on non-rhel system: patch/livepatch-patch-hook.c:53:48: error: missing binary operator before token "(" RHEL_RELEASE_CODE <= RHEL_RELEASE_VERSION(7, 5)) Fix by using 2 levels of #ifs instead of &&. The same way HAVE_CALLBACKS does. Signed-off-by: Artem Savkov <asavkov@redhat.com> |
||
---|---|---|
.. | ||
kpatch-macros.h | ||
kpatch-patch-hook.c | ||
kpatch-patch.h | ||
kpatch.h | ||
kpatch.lds.S | ||
livepatch-patch-hook.c | ||
Makefile | ||
patch-hook.c |