make endian work with netbsd

This commit is contained in:
Jeff Becker 2018-02-16 18:26:57 -05:00
parent b6e75e9c5a
commit 4988a32d33
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -3,7 +3,7 @@
#include <inttypes.h>
#include <string.h>
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/endian.h>
#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#include <endian.h>