fix building on OS X and FreeBSD
This commit is contained in:
parent
eaec1c216c
commit
d1c04df5a4
1 changed files with 8 additions and 1 deletions
|
@ -25,9 +25,16 @@
|
|||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <endian.h>
|
||||
#include "tvheadend.h"
|
||||
|
||||
#if defined(PLATFORM_DARWIN)
|
||||
#include <machine/endian.h>
|
||||
#elif defined(PLATFORM_FREEBSD)
|
||||
#include <sys/endian.h>
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
#ifndef BYTE_ORDER
|
||||
#define BYTE_ORDER __BYTE_ORDER
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue