diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-03-17 00:06:52 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-03-17 00:06:52 -0400 |
commit | 5b079cb248b91cbd5bc577ea96802ec466f40b38 (patch) | |
tree | 5422eb8a7c119295a0d16e5f3d3936f41730b0d1 /src | |
parent | ad3aff45f0d302b35d009e525de8a9d0ee9745a9 (diff) | |
download | postgresql-5b079cb248b91cbd5bc577ea96802ec466f40b38.tar.gz postgresql-5b079cb248b91cbd5bc577ea96802ec466f40b38.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.
Diffstat (limited to 'src')
-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 6ecf78488e0..fd7068dcc6a 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -817,8 +817,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 |