From 9068f7fe2fe33ff8daa65357cdb59c51d34e7f38 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Fri, 8 Jun 2001 12:42:57 +0000 Subject: [PATCH] save errno as per Theo de Raadt --- flex.skl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flex.skl b/flex.skl index 1d9e6da..9b9a9ad 100644 --- a/flex.skl +++ b/flex.skl @@ -6,6 +6,7 @@ %- #include +#include %* @@ -1437,6 +1438,8 @@ void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file ) %* { + int oerrno = errno; + yy_flush_buffer( b YY_CALL_LAST_ARG); b->yy_input_file = file; @@ -1455,6 +1458,7 @@ void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file ) %+ b->yy_is_interactive = 0; %* + errno = oerrno; } -- 2.49.0