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
On Wed, Jan 25, 2012 at 02:05:27PM +0200, Martin Storsjö wrote:
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
while (donotquit)
-sleep(60);
+usleep(60*100);
Add spaces around the operator and patch OK.
Diego
On Wed, 25 Jan 2012, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 01:17:44PM +0100, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 02:05:27PM +0200, Martin Storsjö wrote:
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
while (donotquit)
On Wed, Jan 25, 2012 at 02:23:40PM +0200, Martin Storsjö wrote:
On Wed, 25 Jan 2012, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 01:17:44PM +0100, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 02:05:27PM +0200, Martin Storsjö wrote:
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -120,7