summaryrefslogtreecommitdiff
path: root/net/fping/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/fping/patches/patch-aa')
-rw-r--r--net/fping/patches/patch-aa17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/fping/patches/patch-aa b/net/fping/patches/patch-aa
new file mode 100644
index 00000000000..9db9cb743c5
--- /dev/null
+++ b/net/fping/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.6 2003/09/04 12:47:38 abs Exp $
+
+--- fping.c.orig Fri Jul 20 18:10:26 2001
++++ fping.c
+@@ -1547,8 +1547,10 @@ int wait_for_reply( void )
+
+ ip = ( struct ip* )buffer;
+
+-#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ )
+- /* The alpha headers are decidedly broken.
++#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ ) && !defined( __NetBSD__ )
++ /* The alpha headers are decidedly broken.
++ * XXX _WHAT_ 'alpha'? OSF? True64? Linux?... Certainly not NetBSD
++ * XXX If defining for a particular broken OS then _include the OS_.
+ * 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.
+ */