This simple change allows the library to be compiled under FreeBSD.

This commit is contained in:
Moreno Carullo 2018-12-03 13:00:00 +01:00
parent 03ca83cb50
commit 3d1605009b
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,13 @@
#define be64toh(x) betoh64(x)
#define le64toh(x) letoh64(x)
/**
* FreeBSD handling
*/
#elif defined(__FreeBSD__)
#include <sys/endian.h>
/**
* Not on apple, and not on windows
*/