diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/polypcore/socket-client.c | 2 | ||||
-rw-r--r-- | src/polypcore/winsock.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/polypcore/socket-client.c b/src/polypcore/socket-client.c index d73b22d1..1888ecc1 100644 --- a/src/polypcore/socket-client.c +++ b/src/polypcore/socket-client.c @@ -489,7 +489,7 @@ pa_socket_client* pa_socket_client_new_string(pa_mainloop_api *m, const char*nam s.sin_family = AF_INET; memcpy(&s.sin_addr, host->h_addr, sizeof(struct in_addr)); - s.sin_port = port; + s.sin_port = htons(a.port); if ((c = pa_socket_client_new_sockaddr(m, &s, sizeof(s)))) start_timeout(c); diff --git a/src/polypcore/winsock.h b/src/polypcore/winsock.h index b1e0f7d4..89e6a4ed 100644 --- a/src/polypcore/winsock.h +++ b/src/polypcore/winsock.h @@ -18,6 +18,8 @@ #ifdef HAVE_WS2TCPIP_H #include <ws2tcpip.h> +static const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }}; +static const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }}; #endif #endif |