aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch')
-rw-r--r--testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch b/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch
new file mode 100644
index 0000000000..d5220fe4c6
--- /dev/null
+++ b/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch
@@ -0,0 +1,68 @@
+--- old/configure
++++ new/configure
+@@ -3849,8 +3889,8 @@
+
+ IPVS_SUPPORT="_WITHOUT_LVS_"
+ if test "$enable_lvs" != "no"; then
+- ac_fn_c_check_header_mongrel "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default"
+-if test "x$ac_cv_header_net_ip_vs_h" = x""yes; then :
++ ac_fn_c_check_header_mongrel "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default"
++if test "x$ac_cv_header_linux_ip_vs_h" = xyes; then :
+ IPVS_SUPPORT="_WITH_LVS_"
+ else
+
+--- old/configure.in
++++ new/configure.in
+@@ -113,7 +113,7 @@
+ dnl ----[ Checks for LVS and VRRP support ]----
+ IPVS_SUPPORT="_WITHOUT_LVS_"
+ if test "$enable_lvs" != "no"; then
+- AC_CHECK_HEADER([net/ip_vs.h],
++ AC_CHECK_HEADER([linux/ip_vs.h],
+ [IPVS_SUPPORT="_WITH_LVS_"],
+ [
+ IPVS_SUPPORT="_WITHOUT_LVS_"
+--- keepalived-1.1.20-orig/keepalived/include/check_data.h
++++ keepalived-1.1.20/keepalived/include/check_data.h
+@@ -33,7 +33,7 @@
+
+ #ifdef _WITH_LVS_
+ #define SCHED_MAX_LENGTH IP_VS_SCHEDNAME_MAXLEN
+- #include <net/ip_vs.h>
++ #include <linux/ip_vs.h>
+ #else
+ #define SCHED_MAX_LENGTH 1
+ #endif
+--- keepalived-1.1.20-orig/keepalived/include/ipvswrapper.h
++++ keepalived-1.1.20/keepalived/include/ipvswrapper.h
+@@ -43,7 +43,7 @@
+ #elif _KRNL_2_6_
+ #include "../libipvs-2.6/libipvs.h"
+ #endif
+- #include <net/ip_vs.h>
++ #include <linux/ip_vs.h>
+ #endif
+
+ #ifndef IP_VS_TEMPLATE_TIMEOUT
+--- keepalived-1.1.20-orig/keepalived/libipvs-2.4/libipvs.h
++++ keepalived-1.1.20/keepalived/libipvs-2.4/libipvs.h
+@@ -10,7 +10,7 @@
+ #ifndef _LIBIPVS_H
+ #define _LIBIPVS_H
+
+-#include <net/ip_vs.h>
++#include <linux/ip_vs.h>
+
+ /*
+ * The default IPVS_SVC_PERSISTENT_TIMEOUT is a little larger than average
+--- keepalived-1.1.20-orig/keepalived/libipvs-2.6/libipvs.h
++++ keepalived-1.1.20/keepalived/libipvs-2.6/libipvs.h
+@@ -10,7 +10,7 @@
+ #ifndef _LIBIPVS_H
+ #define _LIBIPVS_H
+
+-#include <net/ip_vs.h>
++#include <linux/ip_vs.h>
+
+ #define MINIMUM_IPVS_VERSION_MAJOR 1
+ #define MINIMUM_IPVS_VERSION_MINOR 1