Skip to content

Commit 7ae983d

Browse files
committed
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.
1 parent f6b2ab7 commit 7ae983d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/regress/pg_regress.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,10 @@ initialize_environment(void)
815815
add_to_path("LD_LIBRARY_PATH", ':', libdir);
816816
add_to_path("DYLD_LIBRARY_PATH", ':', libdir);
817817
add_to_path("LIBPATH", ':', libdir);
818-
#if defined(WIN32) || defined(__CYGWIN__)
818+
#if defined(WIN32)
819819
add_to_path("PATH", ';', libdir);
820+
#elif defined(__CYGWIN__)
821+
add_to_path("PATH", ':', libdir);
820822
#endif
821823
}
822824
else

0 commit comments

Comments
 (0)