summaryrefslogtreecommitdiff
path: root/net/fping/patches/patch-src_fping.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/fping/patches/patch-src_fping.c')
-rw-r--r--net/fping/patches/patch-src_fping.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/fping/patches/patch-src_fping.c b/net/fping/patches/patch-src_fping.c
new file mode 100644
index 00000000000..0f5f2a5d4f9
--- /dev/null
+++ b/net/fping/patches/patch-src_fping.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_fping.c,v 1.1 2017/05/20 11:25:50 adam Exp $
+
+Fix for NetBSD-alpha.
+
+--- src/fping.c.orig 2017-04-23 16:03:08.000000000 +0000
++++ src/fping.c
+@@ -1787,7 +1787,7 @@ int decode_icmp_ipv4(
+ struct icmp* icp;
+ int hlen = 0;
+
+-#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__)
++#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) && !defined(__NetBSD__)
+ /* The alpha headers are decidedly broken.
+ * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and
+ * ip_v. So, to get ip_hl, we mask off the bottom four bits.