In a Windows backend, don't build src/port/pgsleep.c's version of
Tom Lane <tgl@sss.pgh.pa.us>
In a Windows backend, don't build src/port/pgsleep.c's version of pg_usleep at all. Instead call the replacement function in port/win32/signal.c by that name. Avoids tricky macro-redefinition logic and suppresses a compiler warning; furthermore it ensures that no one can accidentally use the non-signal-aware version of pg_usleep in a Windows backend.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/port/win32/signal.c | modified | +12 −4 |
| src/backend/postmaster/syslogger.c | modified | +2 −2 |
| src/include/port/win32.h | modified | +1 −6 |
| src/port/pgsleep.c | modified | +9 −4 |