diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-11-18 15:44:26 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-11-18 15:45:10 +0200 |
commit | 12cc756c7948a90367473f0a52dd2fe2b519dd24 (patch) | |
tree | 5db143dfa7dbee5459cf4079d2e72cdf50c68d79 /recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch | |
parent | 3e502778ee161bef4177e7e7f45c0c9b78d047da (diff) | |
parent | 432ad2aa6c3a13253fefc909faba368851d21fb1 (diff) | |
download | meta-qt5-5.13.tar.gz |
Merge remote-tracking branch 'qtyocto/upstream/zeus' into 5.135.13
* qtyocto/upstream/zeus:
432ad2a qttools: don't install tst_qtattributionsscanner
8115617 qt5: Upgrade to Qt 5.13.2
267e646 python(3)-pyqt5: add qml support
653e12f libqofono: bump SRCREV and add a fix for voicecall
cefb48e qtbase: Add PACKAGECONFIG for lttng
911b346 layer: Mark zeus as compatible release
c373272 ogl-runtime: Fix build on x86_64
9172ba1 README.md: Document need for 32bit host compiler
db2fd6c qtwayland: Fix build with clang/libc++
6b5122e qtbase: Fix build when fp16 is used
Conflicts:
recipes-qt/qt5/ogl-runtime_git.bb
recipes-qt/qt5/qtbase/0004-configure-bump-path-length-from-256-to-512-character.patch
recipes-qt/qt5/qtbase/0013-Disable-ltcg-for-host_build.patch
recipes-qt/qt5/qtbase_git.bb
recipes-qt/qt5/qtwayland_git.bb
Change-Id: I6f325e5d4fc0f2e774962f1b5fd54e5e0e9c96d7
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch b/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch new file mode 100644 index 00000000..459f13ba --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch | |||
@@ -0,0 +1,79 @@ | |||
1 | From 106c8aa7bc2dab7f7b04014d85d93082fae20632 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 7 Jul 2017 15:27:50 -0700 | ||
4 | Subject: [PATCH] chromium: musl: Define res_ninit and res_nclose for non-glibc | ||
5 | platforms | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | chromium/net/dns/dns_config_service_posix.cc | 4 +++ | ||
10 | chromium/net/dns/dns_reloader.cc | 4 +++ | ||
11 | chromium/net/dns/resolv_compat.h | 29 ++++++++++++++++++++ | ||
12 | 3 files changed, 37 insertions(+) | ||
13 | create mode 100644 chromium/net/dns/resolv_compat.h | ||
14 | |||
15 | diff --git a/chromium/net/dns/dns_config_service_posix.cc b/chromium/net/dns/dns_config_service_posix.cc | ||
16 | index 31c564faeee..222ff65b6e1 100644 | ||
17 | --- a/chromium/net/dns/dns_config_service_posix.cc | ||
18 | +++ b/chromium/net/dns/dns_config_service_posix.cc | ||
19 | @@ -29,6 +29,10 @@ | ||
20 | #include "net/dns/public/dns_protocol.h" | ||
21 | #include "net/dns/serial_worker.h" | ||
22 | |||
23 | +#if defined(OS_LINUX) && !defined(__GLIBC__) | ||
24 | +#include "net/dns/resolv_compat.h" | ||
25 | +#endif | ||
26 | + | ||
27 | #if defined(OS_MACOSX) && !defined(OS_IOS) | ||
28 | #include "net/dns/dns_config_watcher_mac.h" | ||
29 | #endif | ||
30 | diff --git a/chromium/net/dns/dns_reloader.cc b/chromium/net/dns/dns_reloader.cc | ||
31 | index 03e248c9878..9ccda82c7e9 100644 | ||
32 | --- a/chromium/net/dns/dns_reloader.cc | ||
33 | +++ b/chromium/net/dns/dns_reloader.cc | ||
34 | @@ -9,6 +9,10 @@ | ||
35 | |||
36 | #include <resolv.h> | ||
37 | |||
38 | +#if defined(OS_LINUX) && !defined(__GLIBC__) | ||
39 | +#include "net/dns/resolv_compat.h" | ||
40 | +#endif | ||
41 | + | ||
42 | #include "base/lazy_instance.h" | ||
43 | #include "base/logging.h" | ||
44 | #include "base/macros.h" | ||
45 | diff --git a/chromium/net/dns/resolv_compat.h b/chromium/net/dns/resolv_compat.h | ||
46 | new file mode 100644 | ||
47 | index 00000000000..4f0e852a19d | ||
48 | --- /dev/null | ||
49 | +++ b/chromium/net/dns/resolv_compat.h | ||
50 | @@ -0,0 +1,29 @@ | ||
51 | +#if !defined(__GLIBC__) | ||
52 | +/*************************************************************************** | ||
53 | + * resolv_compat.h | ||
54 | + * | ||
55 | + * Mimick GLIBC's res_ninit() and res_nclose() for musl libc | ||
56 | + * Note: res_init() is actually deprecated according to | ||
57 | + * http://docs.oracle.com/cd/E36784_01/html/E36875/res-nclose-3resolv.html | ||
58 | + **************************************************************************/ | ||
59 | +#include <string.h> | ||
60 | + | ||
61 | +static inline int res_ninit(res_state statp) | ||
62 | +{ | ||
63 | + int rc = res_init(); | ||
64 | + if (statp != &_res) { | ||
65 | + memcpy(statp, &_res, sizeof(*statp)); | ||
66 | + } | ||
67 | + return rc; | ||
68 | +} | ||
69 | + | ||
70 | +static inline int res_nclose(res_state statp) | ||
71 | +{ | ||
72 | + if (!statp) | ||
73 | + return -1; | ||
74 | + if (statp != &_res) { | ||
75 | + memset(statp, 0, sizeof(*statp)); | ||
76 | + } | ||
77 | + return 0; | ||
78 | +} | ||
79 | +#endif | ||