From 7072a6a4bb058a906076d0813ec46595bc2a9a09 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 25 Jan 2012 13:47:47 +0200 Subject: pktdumper: Use usleep instead of sleep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'tools') diff --git a/tools/pktdumper.c b/tools/pktdumper.c index e9e5acfdec..54dd3f559f 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; } -- cgit v1.2.3