mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 21:47:18 +00:00
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.
This commit is contained in:
parent
31527e43d9
commit
fe9d013c3e
@ -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>
|
Mon Nov 26 11:54:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
* qemud/internal.h: Miscellaneous header file fixes to allow
|
* qemud/internal.h: Miscellaneous header file fixes to allow
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Author: Daniel P. Berrange <berrange@redhat.com>
|
* Author: Daniel P. Berrange <berrange@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include "config.h"
|
||||||
|
|
||||||
#define _GNU_SOURCE /* for asprintf */
|
#define _GNU_SOURCE /* for asprintf */
|
||||||
|
|
||||||
@ -612,8 +612,10 @@ remoteListenTCP (struct qemud_server *server,
|
|||||||
|
|
||||||
if (sa.ss_family == AF_INET)
|
if (sa.ss_family == AF_INET)
|
||||||
sock->port = htons(((struct sockaddr_in*)&sa)->sin_port);
|
sock->port = htons(((struct sockaddr_in*)&sa)->sin_port);
|
||||||
|
#ifdef AF_INET6
|
||||||
else if (sa.ss_family == AF_INET6)
|
else if (sa.ss_family == AF_INET6)
|
||||||
sock->port = htons(((struct sockaddr_in6*)&sa)->sin6_port);
|
sock->port = htons(((struct sockaddr_in6*)&sa)->sin6_port);
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
sock->port = -1;
|
sock->port = -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user