1 From 42c020aab6e51d09f22a2e4a33ce6fd73009e2dc Mon Sep 17 00:00:00 2001
2 From: Quentin Armitage <quentin@armitage.org.uk>
3 Date: Wed, 4 Mar 2020 12:21:43 +0000
4 Subject: [PATCH] Fix building with --disable-libipvs-dynamic
6 Issue #1516 reported by the OpenWRT project identified that
7 keepalived_modprobe() was not defined if --disable-libipvs-dynamic
10 Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
14 2 files changed, 3 insertions(+), 3 deletions(-)
16 diff --git a/lib/utils.c b/lib/utils.c
17 index 009da0ce..7f16f444 100644
23 #include <sys/prctl.h>
24 -#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
25 +#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
29 @@ -1097,7 +1097,7 @@ memcmp_constant_time(const void *s1, const void *s2, size_t n)
30 * Utility functions coming from Wensong code
33 -#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
34 +#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
38 diff --git a/lib/utils.h b/lib/utils.h
39 index 66d64d9f..22325023 100644
42 @@ -263,7 +263,7 @@ extern int open_pipe(int [2]);
44 extern int memcmp_constant_time(const void *, const void *, size_t);
46 -#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
47 +#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
48 extern bool keepalived_modprobe(const char *);