summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/codec.c b/codec.c
index 7dca837..369eb6f 100644
--- a/codec.c
+++ b/codec.c
@@ -39,7 +39,11 @@
#include <stdio.h>
#include <unistd.h>
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>