mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -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
|
||||
# define unlink(x)
|
||||
#else
|
||||
# include <unistd.h>
|
||||
#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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue