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:
Rafal Goslawski 2018-12-03 16:30:25 +01:00 committed by GitHub
commit edf06c0762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
*/