projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix spurious misidentification of incoming UDP packets.
[tinc]
/
lib
/
dropin.c
diff --git
a/lib/dropin.c
b/lib/dropin.c
index
89039da
..
1bad05c
100644
(file)
--- a/
lib/dropin.c
+++ b/
lib/dropin.c
@@
-163,3
+163,11
@@
int gettimeofday(struct timeval *tv, void *tz) {
return 0;
}
#endif
return 0;
}
#endif
+
+#ifndef HAVE_USLEEP
+int usleep(long usec) {
+ struct timeval tv = {usec / 1000000, (usec / 1000) % 1000};
+ select(0, NULL, NULL, NULL, &tv);
+ return 0;
+}
+#endif