mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-23 06:25:28 -07:00
fix warnings on linux
msleep instead of sleep need unistd.h
This commit is contained in:
parent
0c8557c5e6
commit
f10070086a
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define unlink(x)
|
# define unlink(x)
|
||||||
|
#else
|
||||||
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static serial_port sp;
|
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);
|
fprintf(stderr,"Waiting for Proxmark to appear on %s",serial_port_name);
|
||||||
do {
|
do {
|
||||||
sleep(1);
|
msleep(1000);
|
||||||
fprintf(stderr, ".");
|
fprintf(stderr, ".");
|
||||||
} while (!OpenProxmark(0));
|
} while (!OpenProxmark(0));
|
||||||
fprintf(stderr," Found.\n");
|
fprintf(stderr," Found.\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue