From f10070086a870581af0c565191a4519efb695759 Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Wed, 5 Jul 2017 12:30:38 -0400 Subject: [PATCH] fix warnings on linux msleep instead of sleep need unistd.h --- client/flasher.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/flasher.c b/client/flasher.c index e5db09cd..f257d994 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -19,6 +19,8 @@ #ifdef _WIN32 # define unlink(x) +#else +# include #endif static serial_port sp; @@ -128,7 +130,7 @@ int main(int argc, char **argv) fprintf(stderr,"Waiting for Proxmark to appear on %s",serial_port_name); do { - sleep(1); + msleep(1000); fprintf(stderr, "."); } while (!OpenProxmark(0)); fprintf(stderr," Found.\n");