diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch b/meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch new file mode 100644 index 0000000000..66aa4cab84 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 289554d87e4fd96cae08c0fb449bf41d5641cd24 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 9 Nov 2016 20:49:53 -0800 | ||
4 | Subject: [PATCH 19/19] 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 | src/basic/socket-util.c | 9 +++++++++ | ||
12 | 1 file changed, 9 insertions(+) | ||
13 | |||
14 | diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c | ||
15 | index 4ebf106..53b9a12 100644 | ||
16 | --- a/src/basic/socket-util.c | ||
17 | +++ b/src/basic/socket-util.c | ||
18 | @@ -47,6 +47,15 @@ | ||
19 | #include "user-util.h" | ||
20 | #include "utf8.h" | ||
21 | #include "util.h" | ||
22 | +/* Don't fail if the standard library | ||
23 | + * doesn't support IDN */ | ||
24 | +#ifndef NI_IDN | ||
25 | +#define NI_IDN 0 | ||
26 | +#endif | ||
27 | + | ||
28 | +#ifndef NI_IDN_USE_STD3_ASCII_RULES | ||
29 | +#define NI_IDN_USE_STD3_ASCII_RULES 0 | ||
30 | +#endif | ||
31 | |||
32 | int socket_address_parse(SocketAddress *a, const char *s) { | ||
33 | char *e, *n; | ||
34 | -- | ||
35 | 2.10.2 | ||
36 | |||