projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use usleep() instead of sleep(), MinGW complained.
[oweals/tinc.git]
/
lib
/
dropin.c
diff --git
a/lib/dropin.c
b/lib/dropin.c
index 4aed74e95125b6492f9ecc64e464d771f3fe9970..eb17acaad082ecb40d489bd5f7c0022cdadcd7d7 100644
(file)
--- a/
lib/dropin.c
+++ b/
lib/dropin.c
@@
-165,7
+165,7
@@
int gettimeofday(struct timeval *tv, void *tz) {
#endif
#ifndef HAVE_USLEEP
-int usleep(long usec) {
+int usleep(long
long
usec) {
struct timeval tv = {usec / 1000000, (usec / 1000) % 1000};
select(0, NULL, NULL, NULL, &tv);
return 0;