diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:52:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:52:04 +0100 |
commit | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /net-misc/iputils/files/iputils-20180629-musl.patch | |
parent | 6612a728ea11526a849618ec515ad57131d64416 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'net-misc/iputils/files/iputils-20180629-musl.patch')
-rw-r--r-- | net-misc/iputils/files/iputils-20180629-musl.patch | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/net-misc/iputils/files/iputils-20180629-musl.patch b/net-misc/iputils/files/iputils-20180629-musl.patch new file mode 100644 index 000000000000..48742d966021 --- /dev/null +++ b/net-misc/iputils/files/iputils-20180629-musl.patch @@ -0,0 +1,87 @@ +commit 5007d7067918fb3d950d34c01d059e5222db679a +Author: Aric Belsito <lluixhi@gmail.com> +AuthorDate: Mon Dec 4 00:10:29 2017 +0100 +Commit: Thomas Deutschmann <whissi@gentoo.org> +CommitDate: Wed Jul 11 01:33:28 2018 +0200 + + Fix build on MUSL + + Add missing AI_IDN and NI_IDN declarations. + + Bug: https://bugs.gentoo.org/503914 + Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> + +diff --git a/arping.c b/arping.c +index c2f2129..d753345 100644 +--- a/arping.c ++++ b/arping.c +@@ -44,6 +44,13 @@ + + #ifdef USE_IDN + #include <locale.h> ++ ++#ifndef AI_IDN ++#define AI_IDN 0x0040 ++#endif ++#ifndef AI_CANONIDN ++#define AI_CANONIDN 0x0080 ++#endif + #endif + + #include "SNAPSHOT.h" +diff --git a/ping.h b/ping.h +index 3e09685..1e51c67 100644 +--- a/ping.h ++++ b/ping.h +@@ -37,6 +37,17 @@ + + #ifdef USE_IDN + #include <idn2.h> ++ ++#ifndef AI_IDN ++#define AI_IDN 0x0040 ++#endif ++#ifndef AI_CANONIDN ++#define AI_CANONIDN 0x0080 ++#endif ++#ifndef NI_IDN ++#define NI_IDN 32 ++#endif ++ + #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN) + #define getnameinfo_flags NI_IDN + #else +diff --git a/tracepath.c b/tracepath.c +index 53bda16..9558e49 100644 +--- a/tracepath.c ++++ b/tracepath.c +@@ -29,6 +29,14 @@ + + #ifdef USE_IDN + #include <locale.h> ++ ++#ifndef AI_IDN ++#define AI_IDN 0x0040 ++#endif ++#ifndef NI_IDN ++#define NI_IDN 32 ++#endif ++ + #define getnameinfo_flags NI_IDN + #else + #define getnameinfo_flags 0 +diff --git a/traceroute6.c b/traceroute6.c +index a1022f9..ab34615 100644 +--- a/traceroute6.c ++++ b/traceroute6.c +@@ -246,6 +246,10 @@ + #ifdef USE_IDN + #include <locale.h> + ++#ifndef NI_IDN ++#define NI_IDN 32 ++#endif ++ + #define ADDRINFO_IDN_FLAGS AI_IDN + #define getnameinfo_flags NI_IDN + #else |