]> xenbits.xensource.com Git - libvirt.git/commitdiff
dnsmasqReload: avoid mingw link failure
authorEric Blake <eblake@redhat.com>
Mon, 3 May 2010 18:23:50 +0000 (12:23 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 3 May 2010 20:21:07 +0000 (14:21 -0600)
* src/util/dnsmasq.c (dnsmasqReload): Mingw lacks kill, but is not
running a dnsmasq daemon either.

src/util/dnsmasq.c

index 2d578844009c415dec641fb8059ef7aeb2f4e6f9..a96b524324208c66f520c70dfd6a933c8d4d4de2 100644 (file)
@@ -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;
 }