Do not define usleep() in sysdep. Include unistd.h with it

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1414 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 16 years ago
parent 970d8577c8
commit d908ce8eef

@ -1,3 +1,9 @@
2008-12-23 Kolja Waschk <kawk>
* src/cmd/usleep.c, sysdep.h: usleep() is declared in
unistd.h, also present in modern MinGW environments.
Defining it in sysdep.h collides with unistd.h.
2008-12-22 Arnim Laeuger <arniml@users.sourceforge.net>
* src/tap/cable/usbblaster.c:

@ -24,6 +24,8 @@
#include "sysdep.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>

@ -48,7 +48,6 @@
#include <windows.h>
#define geteuid() 0
#define getuid() 0
#define usleep(x) Sleep(x/1E3)
#endif
#endif /* SYSDEP_H */

Loading…
Cancel
Save