Skip to content

Commit 42a65e3

Browse files
committed
Use configured pgport in MSVC config file.
1 parent 0a9cbcb commit 42a65e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/msvc/Solution.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Solution;
33
#
44
# Package that encapsulates a Visual C++ solution file generation
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.23 2007/04/26 10:36:47 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.24 2007/05/15 00:15:01 adunstan Exp $
77
#
88
use Carp;
99
use strict;
@@ -125,6 +125,11 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
125125
print O "#define HAVE_KRB5_TICKET_ENC_PART2 1\n";
126126
print O "#define PG_KRB_SRVNAM \"postgres\"\n";
127127
}
128+
if (my $port = $self->{options}->{--with-pgport})
129+
{
130+
print O "#define DEF_PGPORT $port\n";
131+
print O "#define DEF_PGPORT_STR \"$port\"\n";
132+
}
128133
print O "#define VAL_CONFIGURE \"" . $self->GetFakeConfigure() . "\"\n";
129134
print O "#endif /* IGNORE_CONFIGURED_SETTINGS */\n";
130135
close(O);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy