From: Eric Blake Date: Mon, 3 May 2010 18:23:50 +0000 (-0600) Subject: dnsmasqReload: avoid mingw link failure X-Git-Tag: v0.8.2~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9c4db0d70c0d95cfffe6b308552d5958e479258;p=thirdparty%2Flibvirt.git dnsmasqReload: avoid mingw link failure * src/util/dnsmasq.c (dnsmasqReload): Mingw lacks kill, but is not running a dnsmasq daemon either. --- diff --git a/src/util/dnsmasq.c b/src/util/dnsmasq.c index 2d57884400..a96b524324 100644 --- a/src/util/dnsmasq.c +++ b/src/util/dnsmasq.c @@ -332,14 +332,16 @@ dnsmasqDelete(const dnsmasqContext *ctx) * Reloads all the configurations associated to a context */ int -dnsmasqReload(pid_t pid) +dnsmasqReload(pid_t pid ATTRIBUTE_UNUSED) { +#ifndef WIN32 if (kill(pid, SIGHUP) != 0) { virReportSystemError(errno, - _("Failed to make dnsmasq (PID: %d) reload config files.\n"), + _("Failed to make dnsmasq (PID: %d) reload config files."), pid); return -1; } +#endif /* WIN32 */ return 0; }