]> granicus.if.org Git - postgresql/commitdiff
Use pg_usleep() instead of plain sleep(), to fix Windows build
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 Mar 2014 13:25:39 +0000 (15:25 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 26 Mar 2014 13:25:39 +0000 (15:25 +0200)
Per buildfarm.

contrib/pg_xlogdump/pg_xlogdump.c

index e947696429d754907da8b828cad9852575dac84a..3fb9099649d72a627de305e5b713c6f9ae644779 100644 (file)
@@ -705,7 +705,7 @@ main(int argc, char **argv)
                                break;
                        else
                        {
-                               sleep(1);
+                               pg_usleep(1000000L);            /* 1 second */
                                continue;
                        }
                }