Merge pull request #270 from NozomiNetworks/compile-on-freebsd
This simple change allows the library to be compiled under FreeBSD.
This commit is contained in:
commit
edf06c0762
|
|
@ -126,6 +126,13 @@
|
||||||
#define be64toh(x) betoh64(x)
|
#define be64toh(x) betoh64(x)
|
||||||
#define le64toh(x) letoh64(x)
|
#define le64toh(x) letoh64(x)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FreeBSD handling
|
||||||
|
*/
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
|
||||||
|
#include <sys/endian.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not on apple, and not on windows
|
* Not on apple, and not on windows
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue