summaryrefslogtreecommitdiffstats
path: root/third_party/mongoose/mongoose.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/mongoose/mongoose.c')
-rw-r--r--third_party/mongoose/mongoose.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/third_party/mongoose/mongoose.c b/third_party/mongoose/mongoose.c
index 8078e63..24874e5 100644
--- a/third_party/mongoose/mongoose.c
+++ b/third_party/mongoose/mongoose.c
@@ -4479,10 +4479,10 @@ get_socket(struct mg_context *ctx, struct socket *sp)
ctx->num_idle++;
while (ctx->sq_head == ctx->sq_tail) {
ts.tv_nsec = 0;
-#ifdef OS_POSIX
- ts.tv_sec = time(NULL) + atoi(ctx->options[OPT_IDLE_TIME]) + 1;
-#elif _WIN32
+#ifdef _WIN32
ts.tv_sec = (long) (time(NULL) + atoi(ctx->options[OPT_IDLE_TIME]) + 1);
+#else
+ ts.tv_sec = time(NULL) + atoi(ctx->options[OPT_IDLE_TIME]) + 1;
#endif
if (pthread_cond_timedwait(&ctx->empty_cond,
&ctx->thr_mutex, &ts) != 0) {
@@ -4747,4 +4747,3 @@ mg_start(void)
return (ctx);
}
-