diff --git a/network/nginx/legacy_sus.patch b/network/nginx/legacy_sus.patch index 01e54d39b..a6291f037 100644 --- a/network/nginx/legacy_sus.patch +++ b/network/nginx/legacy_sus.patch @@ -24,7 +24,7 @@ deprecation. #define ngx_gettimeofday(tp) (void) gettimeofday(tp, NULL); -#define ngx_msleep(ms) (void) usleep(ms * 1000) -+#define ngx_msleep(ms) (void) nanosleep(&((struct timespec){0,(ms) * 1000}), NULL) ++#define ngx_msleep(ms) (void) nanosleep(&((struct timespec){0,(ms) * 1000000ul}), NULL) #define ngx_sleep(s) (void) sleep(s)