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.
---
 tools/pktdumper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index e9e5acf..4f59a27 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;
 }
-- 
1.7.3.1

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to