]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Use correct PATH separator for Cygwin in pg_regress.c.
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 17 Mar 2011 04:24:04 +0000 (00:24 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 17 Mar 2011 04:24:04 +0000 (00:24 -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.

src/test/regress/pg_regress.c

index be22c4b98151863d1e15b18155f701d4ded7a88d..efc4d6eb638b1e2c3fff2fe6f54e286661dfa7e4 100644 (file)
@@ -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