Skip to content

Commit

Permalink
Fix building with --disable-libipvs-dynamic
Browse files Browse the repository at this point in the history
Issue acassen#1516 reported by the OpenWRT project identified that
keepalived_modprobe() was not defined if --disable-libipvs-dynamic
was specified.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
  • Loading branch information
pqarmitage committed Mar 4, 2020
1 parent 13d1b2d commit 42c020a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <stdint.h>
#include <errno.h>
#include <sys/prctl.h>
#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
#include <sys/wait.h>
#endif
#ifdef _WITH_PERF_
Expand Down Expand Up @@ -1097,7 +1097,7 @@ memcmp_constant_time(const void *s1, const void *s2, size_t n)
* Utility functions coming from Wensong code
*/

#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
static char*
get_modprobe(void)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ extern int open_pipe(int [2]);
#endif
extern int memcmp_constant_time(const void *, const void *, size_t);

#if defined _WITH_LVS_ || defined _LIBIPSET_DYNAMIC_
#if defined _WITH_LVS_ || defined _HAVE_LIBIPSET_
extern bool keepalived_modprobe(const char *);
#endif

Expand Down

0 comments on commit 42c020a

Please sign in to comment.