summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libproxy
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-10 18:20:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-13 22:33:22 +0100
commit76e8f214e655b8067123740ad317c25eb559b112 (patch)
tree2f7504241db24cc88761da925ccdd97eae236c51 /meta/recipes-support/libproxy
parent5dff87d06ccd05115b54edfd6f314fbbb51b3925 (diff)
downloadpoky-76e8f214e655b8067123740ad317c25eb559b112.tar.gz
libproxy: Include select.h for posix compliance
unearthed with musl Change-Id: I527139905785f253e41dd6a2f0cf555eee752a3a (From OE-Core rev: 615ade48bfb8f1d1287e4ec79f4e2f4b610bdb5b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libproxy')
-rw-r--r--meta/recipes-support/libproxy/libproxy/0001-test-Include-sys-select.h-for-select.patch37
-rw-r--r--meta/recipes-support/libproxy/libproxy_0.4.11.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-support/libproxy/libproxy/0001-test-Include-sys-select.h-for-select.patch b/meta/recipes-support/libproxy/libproxy/0001-test-Include-sys-select.h-for-select.patch
new file mode 100644
index 0000000000..5ae52f2d43
--- /dev/null
+++ b/meta/recipes-support/libproxy/libproxy/0001-test-Include-sys-select.h-for-select.patch
@@ -0,0 +1,37 @@
1From f5f2c2289eb35eb804c1c35e46ca41b58e4cae01 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Apr 2015 14:13:49 -0700
4Subject: [PATCH] test: Include <sys/select.h> for select()
5
6As per posix we need to include this file otherwise we end up with errors like
7
8/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp: In member function 'bool TestServer::loop()':
9/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp:80:4: error: 'fd_set' was not declared in this scope
10 fd_set fds;
11 ^
12/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp:89:14: error: 'fds' was not declared in this scope
13 FD_ZERO (&fds);
14<JIRA TICKET #1>, <JIRA TICKET #2>, <JIRA TICKET #n> : <one line summary of change>
15
16Upstream-Status: Pending
17
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 libproxy/test/get-pac-test.cpp | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/libproxy/test/get-pac-test.cpp b/libproxy/test/get-pac-test.cpp
24index a61fc4b..bda4646 100644
25--- a/libproxy/test/get-pac-test.cpp
26+++ b/libproxy/test/get-pac-test.cpp
27@@ -3,6 +3,7 @@
28 #include <sstream>
29 #include <string>
30
31+#include <sys/select.h>
32 #include <sys/socket.h>
33 #include <netinet/in.h>
34 #include <arpa/inet.h>
35--
362.1.4
37
diff --git a/meta/recipes-support/libproxy/libproxy_0.4.11.bb b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
index 3367c85156..e709b52fa5 100644
--- a/meta/recipes-support/libproxy/libproxy_0.4.11.bb
+++ b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
9DEPENDS = "gconf glib-2.0" 9DEPENDS = "gconf glib-2.0"
10 10
11SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.zip \ 11SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.zip \
12 file://0001-test-Include-sys-select.h-for-select.patch \
12 " 13 "
13 14
14SRC_URI[md5sum] = "06be230b8b612e64997f8f15af6373aa" 15SRC_URI[md5sum] = "06be230b8b612e64997f8f15af6373aa"