summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2015-09-04 19:17:38 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2015-09-08 16:13:58 +0200
commit3f5430de74199ec592206adc5ac628b3febc95fe (patch)
tree76a8d5bbe52b0dfcf2e9a32f3e4c7e97542bd77a /recipes-qt/qt5/qtwebengine
parentbfddb2291ed4f72995d1042a352c0ad1073a4b62 (diff)
downloadmeta-qt5-3f5430de74199ec592206adc5ac628b3febc95fe.tar.gz
qtwebengine: fix build with newer glibc-2.22
* netdb.h staged by glibc-2.22 recipe defines struct addrinfo inside __USE_XOPEN2K unlike other versions which are using __USE_POSIX * fixes: | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c: In function 'bio_ip_and_port_to_socket_and_addr': | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c:40:19: error: storage size of 'hint' isn't known | struct addrinfo hint, *result, *cur; | ^ | ../../../src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c:58:36: error: dereferencing pointer to incomplete type | for (cur = result; cur; cur = cur->ai_next) { | ^ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine')
-rw-r--r--recipes-qt/qt5/qtwebengine/0002-chromium-third_party-boringssl-Demand-for-newer-POSI.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0002-chromium-third_party-boringssl-Demand-for-newer-POSI.patch b/recipes-qt/qt5/qtwebengine/0002-chromium-third_party-boringssl-Demand-for-newer-POSI.patch
new file mode 100644
index 00000000..4e09f6ea
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0002-chromium-third_party-boringssl-Demand-for-newer-POSI.patch
@@ -0,0 +1,37 @@
1From 75e9a963561a73ef2a449d7915cd8b41285ac862 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Jun 2015 13:29:52 -0700
4Subject: [PATCH] chromium/third_party/boringssl: Demand for newer POSIX macro
5
6Reason for change: Define _POSIX_C_SOURCE such that it demands correct
7posix interfaces, netdb.h declares interfaces such as
8getaddrinfo if __USE_POSIX, i.e. POSIX.1:1990 or later.
9However, these interfaces were new in the 2001 edition of POSIX
10therefore ask for Extension from POSIX.1:2001 since we use addrinfo
11structure here.
12
13Change-Id: Icb1c92745d1a0ca958108ae80c270c630628729e
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Reviewed-on: https://boringssl-review.googlesource.com/5253
16Reviewed-by: Adam Langley <agl@google.com>
17Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
18---
19 src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c b/src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c
23index ba65a1a..66c3976 100644
24--- a/src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c
25+++ b/src/3rdparty/chromium/third_party/boringssl/src/crypto/bio/socket_helper.c
26@@ -12,7 +12,7 @@
27 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
28 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
29
30-#define _POSIX_SOURCE
31+#define _POSIX_C_SOURCE 200112L
32
33 #include <openssl/bio.h>
34 #include <openssl/err.h>
35--
362.5.0
37