projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace usleep() with nanosleep().
[tinc]
/
src
/
dropin.h
diff --git
a/src/dropin.h
b/src/dropin.h
index
5601a31
..
fff2d41
100644
(file)
--- a/
src/dropin.h
+++ b/
src/dropin.h
@@
-41,8
+41,8
@@
extern int vasprintf(char **, const char *, va_list ap);
extern int gettimeofday(struct timeval *, void *);
#endif
extern int gettimeofday(struct timeval *, void *);
#endif
-#ifndef HAVE_
U
SLEEP
-extern int
usleep(long long usec
);
+#ifndef HAVE_
NANO
SLEEP
+extern int
nanosleep(const struct timespec *req, struct timespec *rem
);
#endif
#ifndef timeradd
#endif
#ifndef timeradd