Use usleep() instead of sleep(), MinGW complained.
[oweals/tinc.git] / lib / dropin.c
index 4aed74e95125b6492f9ecc64e464d771f3fe9970..eb17acaad082ecb40d489bd5f7c0022cdadcd7d7 100644 (file)
@@ -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;