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 /tools/rbp | |
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 'tools/rbp')
-rw-r--r-- | tools/rbp/depends/libshairport/011_fix_ipv4_fallback.patch | 10 | ||||
-rw-r--r-- | tools/rbp/depends/libshairport/Makefile | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/rbp/depends/libshairport/011_fix_ipv4_fallback.patch b/tools/rbp/depends/libshairport/011_fix_ipv4_fallback.patch new file mode 100644 index 0000000000..2c813f224e --- /dev/null +++ b/tools/rbp/depends/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/tools/rbp/depends/libshairport/Makefile b/tools/rbp/depends/libshairport/Makefile index 7993c0dafb..59c93d59b0 100644 --- a/tools/rbp/depends/libshairport/Makefile +++ b/tools/rbp/depends/libshairport/Makefile @@ -30,8 +30,9 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(SOURCE); patch -p0 < ../006_no_printf.patch cd $(SOURCE); patch -p0 < ../007_fix_syslog_defines.patch cd $(SOURCE); patch -p0 < ../008-add-missing-libs.patch - #cd $(SOURCE); patch -p0 < ../009_fix_ipv6.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) |