diff options
author | Memphiz <memphis@machzwo.de> | 2012-10-08 22:11:50 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2012-10-08 22:37:21 +0200 |
commit | f5770cd1811a4ee0096010eca6bb0a9a63dbdb42 (patch) | |
tree | a7bbcc34612923b8495845eb372e23e61cc1367a /lib/libshairport | |
parent | 79ed7ae85bb1f79bf826c923e87c629ed295ecfa (diff) |
[libshairport] - add patch for fixing fallback from ipv6 to ipv4 (needed where AF_INET6 is defined at buildtime - but ipv6 is not available at runtime - rbpi for example) - thx to ribbon10
Diffstat (limited to 'lib/libshairport')
-rw-r--r-- | lib/libshairport/011_fix_ipv4_fallback.patch | 10 | ||||
-rw-r--r-- | lib/libshairport/Makefile | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/libshairport/011_fix_ipv4_fallback.patch b/lib/libshairport/011_fix_ipv4_fallback.patch new file mode 100644 index 0000000000..2c813f224e --- /dev/null +++ b/lib/libshairport/011_fix_ipv4_fallback.patch @@ -0,0 +1,10 @@ +--- src/socketlib.c 2012-07-14 22:49:30.000000000 +0200 ++++ 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); diff --git a/lib/libshairport/Makefile b/lib/libshairport/Makefile index 69a27ddae0..98e46f2ef2 100644 --- a/lib/libshairport/Makefile +++ b/lib/libshairport/Makefile @@ -46,6 +46,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(SOURCE); patch -p0 < ../008-add-missing-libs.patch cd $(SOURCE); patch -p0 < ../009_fix_ipv6.patch cd $(SOURCE); patch -p0 < ../010_handle_metadata.patch + cd $(SOURCE); patch -p0 < ../011_fix_ipv4_fallback.patch cd $(SOURCE); autoreconf -vif cd $(SOURCE); $(CONFIGURE) |