Extend FreeBSD conditional about byte ordering to NetBSD

NetBSD has the same byte-ordering idioms as FreeBSD.

Signed-off-by: Greg Troxel <gdt@lexort.com>
This commit is contained in:
Greg Troxel 2024-05-03 09:32:57 -04:00 committed by Pablo de Lara
parent dbaf284e11
commit 0231d314f5

View File

@ -34,7 +34,7 @@
#include "stdlib.h"
#include "string.h"
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/types.h>
#include <sys/endian.h>
#define isal_bswap16(x) bswap16(x)