diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0011-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0011-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0011-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch b/meta/recipes-core/systemd/systemd/0011-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch new file mode 100644 index 0000000000..b0923d15f8 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0011-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 60dd411e9756fc2b14c0e061ad803782b4aee874 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 26 Feb 2018 15:46:05 +0800 | ||
4 | Subject: [PATCH 11/31] socket-util: don't fail if libc doesn't support IDN | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Emil Renner Berthing <systemd@esmil.dk> | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | --- | ||
13 | src/basic/socket-util.c | 10 ++++++++++ | ||
14 | 1 file changed, 10 insertions(+) | ||
15 | |||
16 | diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c | ||
17 | index 2c70cade1..67aedadd4 100644 | ||
18 | --- a/src/basic/socket-util.c | ||
19 | +++ b/src/basic/socket-util.c | ||
20 | @@ -50,6 +50,16 @@ | ||
21 | #include "utf8.h" | ||
22 | #include "util.h" | ||
23 | |||
24 | +/* Don't fail if the standard library | ||
25 | + * doesn't support IDN */ | ||
26 | +#ifndef NI_IDN | ||
27 | +#define NI_IDN 0 | ||
28 | +#endif | ||
29 | + | ||
30 | +#ifndef NI_IDN_USE_STD3_ASCII_RULES | ||
31 | +#define NI_IDN_USE_STD3_ASCII_RULES 0 | ||
32 | +#endif | ||
33 | + | ||
34 | #if ENABLE_IDN | ||
35 | # define IDN_FLAGS (NI_IDN|NI_IDN_USE_STD3_ASCII_RULES) | ||
36 | #else | ||
37 | -- | ||
38 | 2.13.0 | ||
39 | |||