]> xenbits.xensource.com Git - libvirt.git/commitdiff
Mon Nov 26 11:56:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 26 Nov 2007 11:56:41 +0000 (11:56 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 26 Nov 2007 11:56:41 +0000 (11:56 +0000)
* qemud/qemud.c: If AF_INET6 not defined, don't test for it.

ChangeLog
qemud/qemud.c

index 22f55ddfaac2b47bc4078d89c2c72a85588ca43d..305976cf7360d3840f799831787fa003e291a42b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 26 11:56:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
+
+       * qemud/qemud.c: If AF_INET6 not defined, don't test for it.
+
 Mon Nov 26 11:54:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
 
        * qemud/internal.h: Miscellaneous header file fixes to allow
index f6cd026ab32b2f04bb3be5662a36c9ffa788d6df..5f76a26cb79dd71df39e0729ffc0ecd67668502b 100644 (file)
@@ -21,7 +21,7 @@
  * Author: Daniel P. Berrange <berrange@redhat.com>
  */
 
-#include <config.h>
+#include "config.h"
 
 #define _GNU_SOURCE /* for asprintf */
 
@@ -612,8 +612,10 @@ remoteListenTCP (struct qemud_server *server,
 
         if (sa.ss_family == AF_INET)
             sock->port = htons(((struct sockaddr_in*)&sa)->sin_port);
+#ifdef AF_INET6
         else if (sa.ss_family == AF_INET6)
             sock->port = htons(((struct sockaddr_in6*)&sa)->sin6_port);
+#endif
         else
             sock->port = -1;