diff options
Diffstat (limited to 'audio/libshout/files/patch-src-common-net-sock.c')
-rw-r--r-- | audio/libshout/files/patch-src-common-net-sock.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/libshout/files/patch-src-common-net-sock.c b/audio/libshout/files/patch-src-common-net-sock.c new file mode 100644 index 000000000000..90d647d48cdb --- /dev/null +++ b/audio/libshout/files/patch-src-common-net-sock.c @@ -0,0 +1,11 @@ +--- src/common/net/sock.c.orig 2019-05-15 08:58:13 UTC ++++ src/common/net/sock.c +@@ -742,7 +742,7 @@ sock_t sock_get_server_socket (int port, const char *s + + setsockopt (sock, SOL_SOCKET, SO_REUSEADDR, (const void *)&on, sizeof(on)); + on = 0; +-#ifdef IPV6_V6ONLY ++#if defined(__BSD_VISIBLE) && defined(IPV6_V6ONLY) + setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof on); + #endif + |