From: Emden Gansner Date: Fri, 4 Jan 2013 18:42:44 +0000 (-0500) Subject: Some flex insert an explicit declaration for isatty(), so the previous X-Git-Tag: LAST_LIBGRAPH~32^2~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7209db149e7c6bd760c17fd9f6d36e1bf98800f1;p=graphviz Some flex insert an explicit declaration for isatty(), so the previous fix of #define isatty(x) 0 fails. Add action to strip out the declaration when generating scan.c. --- diff --git a/lib/cgraph/Makefile.am b/lib/cgraph/Makefile.am index 241ef97a5..c42d947c1 100644 --- a/lib/cgraph/Makefile.am +++ b/lib/cgraph/Makefile.am @@ -33,7 +33,7 @@ scan.o scan.lo: scan.c grammar.h scan.c: $(top_srcdir)/lib/cgraph/scan.l @LEX@ -i $(top_srcdir)/lib/cgraph/scan.l - @SED@ "s/yy/aag/g" < @LEX_OUTPUT_ROOT@.c > scan.c + @SED@ "s/yy/aag/g" < @LEX_OUTPUT_ROOT@.c | @SED@ '/extern.*isatty/d' > scan.c rm @LEX_OUTPUT_ROOT@.c grammar.c: y.tab.c