Skip to content

Commit 0231d31

Browse files
gdtpablodelara
authored andcommitted
Extend FreeBSD conditional about byte ordering to NetBSD
NetBSD has the same byte-ordering idioms as FreeBSD. Signed-off-by: Greg Troxel <[email protected]>
1 parent dbaf284 commit 0231d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/unaligned.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "stdlib.h"
3535
#include "string.h"
3636

37-
#ifdef __FreeBSD__
37+
#if defined(__FreeBSD__) || defined(__NetBSD__)
3838
#include <sys/types.h>
3939
#include <sys/endian.h>
4040
#define isal_bswap16(x) bswap16(x)

0 commit comments

Comments
 (0)