From 6a56a38f017718f23b001050e3a69662b83373da Mon Sep 17 00:00:00 2001
From: Andrew Dunstan <andrew@dunslane.net>
Date: Fri, 26 Aug 2011 10:21:43 -0400
Subject: [PATCH] Unbreak MSVC build broken by my port of flex check.

flex puts lex.backup in the current working directory regardless
of where the input and output are.
---
 src/tools/msvc/pgflex.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/msvc/pgflex.pl b/src/tools/msvc/pgflex.pl
index 36636ccaf35..f48ce6b900a 100644
--- a/src/tools/msvc/pgflex.pl
+++ b/src/tools/msvc/pgflex.pl
@@ -67,7 +67,7 @@ if ($? == 0)
     }
 	if ($flexflags =~ /\s-b\s/)
 	{
-		my $lexback = dirname($input) . "/lex.backup";
+		my $lexback = "lex.backup";
 		open($lfile,$lexback) || die "opening $lexback for reading: $!";
 		my $lexbacklines = <$lfile>;
 		close($lfile);
-- 
GitLab