diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
index 78a6cf2adf258768251fdb019d09918e571d4c1a..cf28da1c412f5c847ebe1d66322bca076d4b6b8c 100644
--- a/src/tools/msvc/Install.pm
+++ b/src/tools/msvc/Install.pm
@@ -312,6 +312,7 @@ sub CopyContribFiles
         next if ($d eq "uuid-ossp"&& !defined($config->{uuid}));
         next if ($d eq "sslinfo" && !defined($config->{openssl}));
         next if ($d eq "xml2" && !defined($config->{xml}));
+        next if ($d eq "sepgsql");
 
         my $mf = read_file("contrib/$d/Makefile");
         $mf =~ s{\\s*[\r\n]+}{}mg;
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
index b73271e71222919e7356cd0ccd869e20863510d2..44d11e1fae8147692b0c129a52527ab59d3b6d3e 100644
--- a/src/tools/msvc/Mkvcbuild.pm
+++ b/src/tools/msvc/Mkvcbuild.pm
@@ -356,6 +356,9 @@ sub mkvcbuild
         push @contrib_excludes,'uuid-ossp';
     }
 
+    # No SELinux support for Windows.
+    push @contrib_excludes,'sepgsql';
+
     # Pgcrypto makefile too complex to parse....
     my $pgcrypto = $solution->AddProject('pgcrypto','dll','crypto');
     $pgcrypto->AddFiles(