aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2007-05-15 00:15:01 +0000
committerAndrew Dunstan <andrew@dunslane.net>2007-05-15 00:15:01 +0000
commit42a65e39a56898f468ff8c99a19b660f8c88ff30 (patch)
treec7e3c0de7fafc019c26944f8bc7420289268649c /src
parent0a9cbcbfd2fdb8f7c8b602ab5fb1091be9141d9e (diff)
downloadpostgresql-42a65e39a56898f468ff8c99a19b660f8c88ff30.tar.gz
postgresql-42a65e39a56898f468ff8c99a19b660f8c88ff30.zip
Use configured pgport in MSVC config file.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index cd65cb3b455..8983978c72c 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -3,7 +3,7 @@ package Solution;
#
# Package that encapsulates a Visual C++ solution file generation
#
-# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.23 2007/04/26 10:36:47 mha Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.24 2007/05/15 00:15:01 adunstan Exp $
#
use Carp;
use strict;
@@ -125,6 +125,11 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
print O "#define HAVE_KRB5_TICKET_ENC_PART2 1\n";
print O "#define PG_KRB_SRVNAM \"postgres\"\n";
}
+ if (my $port = $self->{options}->{--with-pgport})
+ {
+ print O "#define DEF_PGPORT $port\n";
+ print O "#define DEF_PGPORT_STR \"$port\"\n";
+ }
print O "#define VAL_CONFIGURE \"" . $self->GetFakeConfigure() . "\"\n";
print O "#endif /* IGNORE_CONFIGURED_SETTINGS */\n";
close(O);