summaryrefslogtreecommitdiff
path: root/package/traceroute/patches/patch-traceroute_csum_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-30 11:24:18 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-30 11:24:18 +0100
commite6e5113cb91830bc97a778d98b3c551b25d8f5cb (patch)
tree15db28263e8e6196abc8b26be5762d392a598978 /package/traceroute/patches/patch-traceroute_csum_c
parentdf30f7362b13fadf5a996e1303ba8488699a7ec6 (diff)
fix musl compile
Diffstat (limited to 'package/traceroute/patches/patch-traceroute_csum_c')
-rw-r--r--package/traceroute/patches/patch-traceroute_csum_c17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/traceroute/patches/patch-traceroute_csum_c b/package/traceroute/patches/patch-traceroute_csum_c
new file mode 100644
index 000000000..8332de5e4
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_csum_c
@@ -0,0 +1,17 @@
+--- traceroute-2.0.19.orig/traceroute/csum.c 2007-07-19 16:47:55.000000000 +0200
++++ traceroute-2.0.19/traceroute/csum.c 2013-12-29 20:01:35.000000000 +0100
+@@ -12,11 +12,11 @@
+ #include "traceroute.h"
+
+
+-u_int16_t in_csum (const void *ptr, size_t len) {
+- const u_int16_t *p = (const u_int16_t *) ptr;
++uint16_t in_csum (const void *ptr, size_t len) {
++ const uint16_t *p = (const uint16_t *) ptr;
+ size_t nw = len / 2;
+ unsigned int sum = 0;
+- u_int16_t res;
++ uint16_t res;
+
+ while (nw--) sum += *p++;
+