git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6b2ab7)
Use correct PATH separator for Cygwin in pg_regress.c.
2011年3月17日 04:11:01 +0000 (00:11 -0400)
2011年3月17日 04:11:01 +0000 (00:11 -0400)
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.


diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index 477732eee74f5e1cbd65a393615ec3363234e522..977a8c7cb7b9145a7d3e89c673fc6d8a5c9d27aa 100644 (file)
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -815,8 +815,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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /