1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
|