pkgsrc/net/fping6/patches/patch-ab
abs d79533ea5b Update fping and fping6 to 2.4b2nb1.
Add !defined(__NetBSD__) to a broken __alpha__ test.
2003-09-04 12:47:37 +00:00

17 lines
726 B
Text

$NetBSD: patch-ab,v 1.1 2003/09/04 12:47:39 abs Exp $
--- fping.c.orig Thu Sep 4 13:44:10 2003
+++ fping.c
@@ -1625,8 +1625,10 @@ int wait_for_reply( void )
ip = ( struct ip* )buffer;
#ifndef IPV6
-#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.
*/