Skip to content

Commit 4dd3365

Browse files
committed
Enable IPV6 when building with MSVC.
1 parent d13e903 commit 4dd3365

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/tools/msvc/Mkvcbuild.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Mkvcbuild;
33
#
44
# Package that generates build files for msvc build
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.7 2007/03/29 15:30:52 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.8 2007/04/12 07:02:59 mha Exp $
77
#
88
use Carp;
99
use Win32;
@@ -156,6 +156,7 @@ sub mkvcbuild
156156

157157
# src/bin
158158
my $initdb = AddSimpleFrontend('initdb', 1);
159+
$initdb->AddLibrary('wsock32.lib ws2_32.lib');
159160

160161
my $pgconfig = AddSimpleFrontend('pg_config');
161162

src/tools/msvc/Solution.pm

Lines changed: 2 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.20 2007/03/29 15:30:52 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.21 2007/04/12 07:03:00 mha Exp $
77
#
88
use Carp;
99
use strict;
@@ -112,6 +112,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
112112
print O "#define HAVE_LIBZ 1\n" if ($self->{options}->{zlib});
113113
print O "#define USE_SSL 1\n" if ($self->{options}->{openssl});
114114
print O "#define ENABLE_NLS 1\n" if ($self->{options}->{nls});
115+
print O "#define HAVE_IPV6 1\n";
115116

116117
if ($self->{options}->{xml})
117118
{

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