mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
libshairport: add upstream patch
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8a937813e7
commit
e3e5caba39
@ -0,0 +1,10 @@
|
|||||||
|
--- a/src/socketlib.c 2012-07-14 22:49:30.000000000 +0200
|
||||||
|
+++ b/src/socketlib.c 2012-10-08 21:55:51.000000000 +0200
|
||||||
|
@@ -118,6 +118,7 @@
|
||||||
|
|
||||||
|
int tEnable = 1;
|
||||||
|
setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
|
||||||
|
+ server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
|
||||||
|
if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
|
||||||
|
{
|
||||||
|
close(tSock);
|
Loading…
x
Reference in New Issue
Block a user