From: Vinson Lee <[email protected]>

This patch fixes these build errors on kernels 3.8 and older.

  CC    net/ip_setsockopt.o
net/ip_setsockopt.c:32:22: error: ‘MRT_ADD_MFC_PROXY’ undeclared here (not in a 
function)
net/ip_setsockopt.c:32:41: error: ‘MRT_DEL_MFC_PROXY’ undeclared here (not in a 
function)
make: *** [net/ip_setsockopt.o] Error 1

Signed-off-by: Vinson Lee <[email protected]>
---
 include/compat.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index e1b9296..0ed2020 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -684,4 +684,12 @@ struct kvm_get_htab_fd {
 #define EM_ARM                    40
 #endif
 
+/* linux/mroute.h */
+#ifndef MRT_ADD_MFC_PROXY
+#define MRT_ADD_MFC_PROXY      (MRT_BASE+10)
+#endif
+#ifndef MRT_DEL_MFC_PROXY
+#define MRT_DEL_MFC_PROXY      (MRT_BASE+11)
+#endif
+
 #endif /* _TRINITY_COMPAT_H */
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to