MSVC: Repair libpq.rc generator.
authorNoah Misch <noah@leadboat.com>
Sun, 9 Jul 2017 07:43:17 +0000 (00:43 -0700)
committerNoah Misch <noah@leadboat.com>
Sun, 9 Jul 2017 07:43:17 +0000 (00:43 -0700)
It generates an empty file, so libpq.dll advertises no version
information.  Commit facde2a98f0b5f7689b4e30a9e7376e926e733b8
mistranslated "print O;" in this one place.

src/tools/msvc/Solution.pm

index fc71ebe7adaf183678eb25001f78e52c486c5198..01e5846b639cb6c286280605e817e89bb098f047 100644 (file)
@@ -392,7 +392,7 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c
        while (<$i>)
        {
            s/(VERSION.*),0/$1,$d/;
-           print $o;
+           print $o $_;
        }
        close($i);
        close($o);