From: acoul Date: Thu, 14 Oct 2010 16:42:52 +0000 (+0000) Subject: net/quagga-unstable: fix a cross-compile issue. this need to go upstream. (thank... X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=9c7b5dccae3b876f386ba92f51fa394b3e8d8cbf;p=packages.git 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 --- 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);