From 5d3eee1105e2559419a3820bb71d66fc44a2de55 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 13 May 2022 06:49:52 +0200 Subject: [PATCH] NetBSD/alpha is not affected by the "broken alpha headers" bug. --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fping.c b/src/fping.c index af16061..4f66174 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2087,7 +2087,7 @@ int decode_icmp_ipv4( if (!using_sock_dgram4) { struct ip* ip = (struct ip*)reply_buf; -#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. -- 2.43.0