From 7072a6a4bb058a906076d0813ec46595bc2a9a09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 25 Jan 2012 13:47:47 +0200 Subject: [PATCH] pktdumper: Use usleep instead of sleep MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit MinGW doesn't have sleep, only _sleep (which is deprecated), Sleep (which is defined in winbase.h and not in the standard C headers) and usleep. Signed-off-by: Martin Storsjö --- tools/pktdumper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pktdumper.c b/tools/pktdumper.c index e9e5acf..54dd3f5 100644 --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -120,7 +120,7 @@ int main(int argc, char **argv) avformat_close_input(&fctx); while (donotquit) - sleep(60); + usleep(60 * 1000000); return 0; } -- 2.7.4