From 12765dc239a389d73ecfe848690e4cfd817c8e4a Mon Sep 17 00:00:00 2001 From: acoul Date: Thu, 14 Oct 2010 16:41:09 +0000 Subject: [PATCH] net/quagga-unstable: fix compile issue on FreeBSD 8.1 git-svn-id: svn://svn.openwrt.org/openwrt/packages@23448 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/001-fix_ipctl_forwarding.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 net/quagga-unstable/patches/001-fix_ipctl_forwarding.patch diff --git a/net/quagga-unstable/patches/001-fix_ipctl_forwarding.patch b/net/quagga-unstable/patches/001-fix_ipctl_forwarding.patch new file mode 100644 index 000000000..e9a986410 --- /dev/null +++ b/net/quagga-unstable/patches/001-fix_ipctl_forwarding.patch @@ -0,0 +1,27 @@ +Add definitions for IPCTL_FORWARDING and IP6CTL_FORWARDING. + +Inspired from +http://svn.gnumonks.org/trunk/grouter/build/src/quagga/quagga/quagga-0.99.1-forward_sysctl-2.6.14.patch + +Signed-off-by: Thomas Petazzoni + +Index: quagga-0.99.16/zebra/ipforward_sysctl.c +=================================================================== +--- quagga-0.99.16.orig/zebra/ipforward_sysctl.c 2010-06-20 23:40:45.000000000 +0200 ++++ quagga-0.99.16/zebra/ipforward_sysctl.c 2010-06-20 23:41:37.000000000 +0200 +@@ -31,6 +31,15 @@ + + #define MIB_SIZ 4 + ++/* Fix for recent (2.6.14) kernel headers */ ++#ifndef IPCTL_FORWARDING ++#define IPCTL_FORWARDING NET_IPV4_FORWARD ++#endif ++ ++#ifndef IP6CTL_FORWARDING ++#define IP6CTL_FORWARDING NET_IPV6_FORWARDING ++#endif ++ + extern struct zebra_privs_t zserv_privs; + + /* IPv4 forwarding control MIB. */ -- 2.11.0