From 0231d314f5147d340af5a8adcdfa2f42811c292a Mon Sep 17 00:00:00 2001 From: Greg Troxel Date: Fri, 3 May 2024 09:32:57 -0400 Subject: [PATCH] Extend FreeBSD conditional about byte ordering to NetBSD NetBSD has the same byte-ordering idioms as FreeBSD. Signed-off-by: Greg Troxel --- include/unaligned.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/unaligned.h b/include/unaligned.h index e67bed2..95de76f 100644 --- a/include/unaligned.h +++ b/include/unaligned.h @@ -34,7 +34,7 @@ #include "stdlib.h" #include "string.h" -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__NetBSD__) #include #include #define isal_bswap16(x) bswap16(x)