summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-10-07 21:02:15 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-10-08 14:54:40 (GMT)
commit1fffa00852e74e839d53dbbac7a27a72e87020ff (patch)
treeb2434444ee8404c9a5663656025f8bbf9edf2564
parent97c386e4586201dbd976925f021ff877620462fc (diff)
downloadbuildroot-1fffa00852e74e839d53dbbac7a27a72e87020ff.tar.gz
buildroot-1fffa00852e74e839d53dbbac7a27a72e87020ff.tar.bz2
lighttpd: fix build failure without ipv6
Reported in https://bugs.gentoo.org/show_bug.cgi?id=486426 and http://redmine.lighttpd.net/issues/2515 Autobuilders didn't hit it yet, but i did. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/lighttpd/lighttpd-01-Fix-default-config-file.patch (renamed from package/lighttpd/lighttpd-Fix-default-config-file.patch)0
-rw-r--r--package/lighttpd/lighttpd-02-mod_extforward.patch14
2 files changed, 14 insertions, 0 deletions
diff --git a/package/lighttpd/lighttpd-Fix-default-config-file.patch b/package/lighttpd/lighttpd-01-Fix-default-config-file.patch
index 88d2c6f..88d2c6f 100644
--- a/package/lighttpd/lighttpd-Fix-default-config-file.patch
+++ b/package/lighttpd/lighttpd-01-Fix-default-config-file.patch
diff --git a/package/lighttpd/lighttpd-02-mod_extforward.patch b/package/lighttpd/lighttpd-02-mod_extforward.patch
new file mode 100644
index 0000000..3efd2b1
--- /dev/null
+++ b/package/lighttpd/lighttpd-02-mod_extforward.patch
@@ -0,0 +1,14 @@
+From http://redmine.lighttpd.net/issues/2515
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+--- a/src/mod_extforward.c (revision 2909)
++++ b/src/mod_extforward.c (working copy)
+@@ -439,7 +439,6 @@
+ #ifdef HAVE_IPV6
+ ipstr_to_sockaddr(srv, real_remote_addr, &sock);
+ #else
+- UNUSED(addrs_left);
+ sock.ipv4.sin_addr.s_addr = inet_addr(real_remote_addr);
+ sock.plain.sa_family = (sock.ipv4.sin_addr.s_addr == 0xFFFFFFFF) ? AF_UNSPEC : AF_INET;
+ #endif