From 12c4a1be1f813baef68dc136b663415e69e5be1e Mon Sep 17 00:00:00 2001
From: Michael Insel <michael@insel.email>
Date: Sun, 28 Jan 2018 22:00:36 +0100
Subject: [PATCH] Fix build error on Windows

The `kill` and `SIGUSR2` statements are not available on Windows.
---
 lib/cli/daemoncommand.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/cli/daemoncommand.cpp b/lib/cli/daemoncommand.cpp
index 56582ec64..40f723f2b 100644
--- a/lib/cli/daemoncommand.cpp
+++ b/lib/cli/daemoncommand.cpp
@@ -217,6 +217,7 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
 		return EXIT_SUCCESS;
 	}
 
+#ifndef _WIN32
 	if (vm.count("reload-internal")) {
 		/* We went through validation and now ask the old process kindly to die */
 		Log(LogInformation, "cli", "Requesting to take over.");
@@ -227,6 +228,7 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
 			return EXIT_FAILURE;
 		}
 	}
+#endif /* _WIN32 */
 
 	if (vm.count("daemonize")) {
 		if (!vm.count("reload-internal")) {