From: Heikki Linnakangas Date: Wed, 26 Mar 2014 13:25:39 +0000 (+0200) Subject: Use pg_usleep() instead of plain sleep(), to fix Windows build X-Git-Tag: REL9_4_BETA1~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28475f8e58bd5da2b44a42203665a543f335c6a3;p=postgresql Use pg_usleep() instead of plain sleep(), to fix Windows build Per buildfarm. --- diff --git a/contrib/pg_xlogdump/pg_xlogdump.c b/contrib/pg_xlogdump/pg_xlogdump.c index e947696429..3fb9099649 100644 --- a/contrib/pg_xlogdump/pg_xlogdump.c +++ b/contrib/pg_xlogdump/pg_xlogdump.c @@ -705,7 +705,7 @@ main(int argc, char **argv) break; else { - sleep(1); + pg_usleep(1000000L); /* 1 second */ continue; } }