net/quagga-unstable: fix a cross-compile issue. this need to go upstream. (thank...
authorAlexandros C. Couloumbis <alex@ozo.com>
Thu, 14 Oct 2010 16:42:52 +0000 (16:42 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Thu, 14 Oct 2010 16:42:52 +0000 (16:42 +0000)
SVN-Revision: 23449

net/quagga-unstable/patches/010-fix_cpp.patch [new file with mode: 0644]

diff --git a/net/quagga-unstable/patches/010-fix_cpp.patch b/net/quagga-unstable/patches/010-fix_cpp.patch
new file mode 100644 (file)
index 0000000..3660bf8
--- /dev/null
@@ -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 = <FH>;
+     close (FH);