From 9c7b5dccae3b876f386ba92f51fa394b3e8d8cbf Mon Sep 17 00:00:00 2001 From: acoul Date: Thu, 14 Oct 2010 16:42:52 +0000 Subject: [PATCH] net/quagga-unstable: fix a cross-compile issue. this need to go upstream. (thank you Acinonyx) git-svn-id: svn://svn.openwrt.org/openwrt/packages@23449 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/quagga-unstable/patches/010-fix_cpp.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/quagga-unstable/patches/010-fix_cpp.patch diff --git a/net/quagga-unstable/patches/010-fix_cpp.patch b/net/quagga-unstable/patches/010-fix_cpp.patch new file mode 100644 index 000000000..3660bf898 --- /dev/null +++ b/net/quagga-unstable/patches/010-fix_cpp.patch @@ -0,0 +1,11 @@ +--- a/vtysh/extract.pl.in ++++ b/vtysh/extract.pl.in +@@ -62,7 +62,7 @@ $ignore{'"show history"'} = "ignore"; + foreach (@ARGV) { + $file = $_; + +- open (FH, "cpp -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -DHAVE_IPV6 -I@top_builddir@ -I@srcdir@/ -I@srcdir@/.. -I@top_srcdir@/lib -I@top_srcdir@/isisd/topology @SNMP_INCLUDES@ $file |"); ++ open (FH, "@CPP@ @CPPFLAGS@ -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -DHAVE_IPV6 -I@top_builddir@ -I@srcdir@/ -I@srcdir@/.. -I@top_srcdir@/lib -I@top_srcdir@/isisd/topology @SNMP_INCLUDES@ $file |"); + local $/; undef $/; + $line = ; + close (FH);