From 40a5a33ac76e4d3d22662fd51e7c0e1d2be3100b Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Thu, 3 Jan 2013 15:42:42 -0500 Subject: [PATCH] Turn off call to isatty() in flex output. The cgraph readers never use this result, and the Windows version of isatty() crashes if the file descriptor is not a valid open file. --- lib/cgraph/scan.l | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 75d377d8b..e2215d1f4 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -39,6 +39,7 @@ void agsetfile(char* f) { InputFile = f; line_num = 1; } */ void aglexinit(Agdisc_t *disc, void *ifile) { Disc = disc; Ifile = ifile; graphType = 0;} +#define isatty(x) 0 #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \ -- 2.40.0