Index: lldb/tools/lldb-server/lldb-gdbserver.cpp =================================================================== --- lldb/tools/lldb-server/lldb-gdbserver.cpp +++ lldb/tools/lldb-server/lldb-gdbserver.cpp @@ -108,10 +108,10 @@ {"fd", required_argument, nullptr, 'F'}, {nullptr, 0, nullptr, 0}}; +#ifndef _WIN32 // Watch for signals static int g_sighup_received_count = 0; -#ifndef _WIN32 static void sighup_handler(MainLoopBase &mainloop) { ++g_sighup_received_count;