Skip to content

Commit

Permalink
Extend FreeBSD conditional about byte ordering to NetBSD
Browse files Browse the repository at this point in the history
NetBSD has the same byte-ordering idioms as FreeBSD.

Signed-off-by: Greg Troxel <gdt@lexort.com>
  • Loading branch information
gdt authored and pablodelara committed Jun 6, 2024
1 parent dbaf284 commit 0231d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0231d31

Please sign in to comment.