From 33601f1a51e434d9ecec12c45f9c23411293476b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 13 Sep 2015 00:42:59 +0900 Subject: [PATCH] nghttpx: Fix compile error with --disable-threads --- src/shrpx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 9354a14f..554410a2 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -912,8 +912,9 @@ int event_loop() { // After that, we drop the root privileges if needed. drop_privileges(); -#ifndef NOTHREADS int rv; + +#ifndef NOTHREADS sigset_t signals; sigemptyset(&signals); sigaddset(&signals, REOPEN_LOG_SIGNAL);