diff options
author | Noah Misch <noah@leadboat.com> | 2016-12-03 15:46:36 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2016-12-03 15:46:48 -0500 |
commit | 5ab4b2ec4b7a3794aff271f05310f675dd2c7d05 (patch) | |
tree | cc891f9751b49c8dc4968b8a1c0b115d8f989cfa /src | |
parent | 3cb8bdfef998ad54a88da5d1d9e0af9be3ab79cc (diff) | |
download | postgresql-5ab4b2ec4b7a3794aff271f05310f675dd2c7d05.tar.gz postgresql-5ab4b2ec4b7a3794aff271f05310f675dd2c7d05.zip |
Make pgwin32_putenv() visit debug CRTs.
This has no effect in the most conventional case, where no relevant DLL
uses a debug build. For an example where it does matter, given a debug
build of MIT Kerberos, the krb_server_keyfile parameter usually had no
effect. Since nobody wants a Heisenbug, back-patch to 9.2 (all
supported versions).
Christian Ullrich, reviewed by Michael Paquier.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/win32env.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/port/win32env.c b/src/port/win32env.c index 6ed50e3e6bc..4939fc7cfbb 100644 --- a/src/port/win32env.c +++ b/src/port/win32env.c @@ -41,30 +41,57 @@ pgwin32_putenv(const char *envval) "msvcrt", NULL, NULL }, /* Visual Studio 6.0 / MinGW */ { + "msvcrtd", NULL, NULL + }, + { "msvcr70", NULL, NULL }, /* Visual Studio 2002 */ { + "msvcr70d", NULL, NULL + }, + { "msvcr71", NULL, NULL }, /* Visual Studio 2003 */ { + "msvcr71d", NULL, NULL + }, + { "msvcr80", NULL, NULL }, /* Visual Studio 2005 */ { + "msvcr80d", NULL, NULL + }, + { "msvcr90", NULL, NULL }, /* Visual Studio 2008 */ { + "msvcr90d", NULL, NULL + }, + { "msvcr100", NULL, NULL }, /* Visual Studio 2010 */ { + "msvcr100d", NULL, NULL + }, + { "msvcr110", NULL, NULL }, /* Visual Studio 2012 */ { + "msvcr110d", NULL, NULL + }, + { "msvcr120", NULL, NULL }, /* Visual Studio 2013 */ { + "msvcr120d", NULL, NULL + }, + { "ucrtbase", NULL, NULL }, /* Visual Studio 2015 and later */ { + "ucrtbased", NULL, NULL + }, + { NULL, NULL, NULL } }; |