add FreeBSD build support (except test/)

Note: NetBSD and OpenBSD has both <endian.h> and <sys/endian.h>
This commit is contained in:
SASANO Takayoshi 2022-07-12 20:37:44 +09:00
parent 455e8c4229
commit 9039a8c724
4 changed files with 5 additions and 4 deletions

View file

@ -28,7 +28,7 @@
#include <linux/types.h>
#include <asm/byteorder.h>
#else
#include <endian.h>
#include <sys/endian.h>
#include <sys/ioctl.h>
#endif