diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-03-17 00:24:04 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-03-17 00:24:04 -0400 |
commit | 5773fac1606cdeb3fa60f89eb8c20ef5e904663a (patch) | |
tree | 702de7f516e4cbe7d20c2285c36f0524d6065758 | |
parent | 1b5a7779cbe37a750f799b6314ceb43b8a0e5aba (diff) | |
download | postgresql-5773fac1606cdeb3fa60f89eb8c20ef5e904663a.tar.gz postgresql-5773fac1606cdeb3fa60f89eb8c20ef5e904663a.zip |
Use correct PATH separator for Cygwin in pg_regress.c.
This has been broken for years, and I'm not sure why it has not been
noticed before, but now a very modern Cygwin breaks on it, and the fix
is clearly correct. Backpatching to all live branches.
-rw-r--r-- | src/test/regress/pg_regress.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index be22c4b9815..efc4d6eb638 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -516,8 +516,10 @@ initialize_environment(void) add_to_path("LD_LIBRARY_PATH", ':', libdir); add_to_path("DYLD_LIBRARY_PATH", ':', libdir); add_to_path("LIBPATH", ':', libdir); -#if defined(WIN32) || defined(__CYGWIN__) +#if defined(WIN32) add_to_path("PATH", ';', libdir); +#elif defined(__CYGWIN__) + add_to_path("PATH", ':', libdir); #endif } else |