diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 10:01:36 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 10:01:36 +0100 |
| commit | dc78a21a21568a389cf214ff29113f99286d644a (patch) | |
| tree | ef919a6eedf02a20128dd2b8a7f008353698a1cc /package/traceroute/patches/patch-traceroute_traceroute_c | |
| parent | e96c649294fd763fa8631b866397a07b9434bbd3 (diff) | |
| parent | 191b566ae5e66d2180924a4151f67e635fd12ad5 (diff) | |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/traceroute/patches/patch-traceroute_traceroute_c')
| -rw-r--r-- | package/traceroute/patches/patch-traceroute_traceroute_c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/traceroute/patches/patch-traceroute_traceroute_c b/package/traceroute/patches/patch-traceroute_traceroute_c new file mode 100644 index 000000000..b9b7f27d9 --- /dev/null +++ b/package/traceroute/patches/patch-traceroute_traceroute_c @@ -0,0 +1,34 @@ +--- traceroute-2.0.19.orig/traceroute/traceroute.c 2012-11-19 17:12:04.000000000 +0100 ++++ traceroute-2.0.19/traceroute/traceroute.c 2013-12-30 11:22:50.000000000 +0100 +@@ -31,6 +31,13 @@ + #include "version.h" + #include "traceroute.h" + ++#ifndef AI_IDN ++# define AI_IDN 0 /* GNU/libc extension */ ++#endif ++ ++#ifndef NI_IDN ++# define NI_IDN 0 /* GNU/libc extension */ ++#endif + + #ifndef ICMP6_DST_UNREACH_BEYONDSCOPE + #ifdef ICMP6_DST_UNREACH_NOTNEIGHBOR +@@ -325,7 +332,7 @@ static void init_ip_options (void) { + rth->ip6r_type = ipv6_rthdr_type; + rth->ip6r_segleft = num_gateways; + +- *((u_int32_t *) (rth + 1)) = 0; ++ *((uint32_t *) (rth + 1)) = 0; + + in6 = (struct in6_addr *) (rtbuf + 8); + for (i = 0; i < num_gateways; i++) +@@ -606,7 +613,7 @@ int main (int argc, char *argv[]) { + htonl (((tos & 0xff) << 20) | (flow_label & 0x000fffff)); + + if (src_port) { +- src_addr.sin.sin_port = htons ((u_int16_t) src_port); ++ src_addr.sin.sin_port = htons ((uint16_t) src_port); + src_addr.sa.sa_family = af; + } + |
