mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-06 20:33:10 -05:00
Use sys/endian.h on FreeBSD
This commit is contained in:
committed by
Julien BLACHE
parent
86a90fe81f
commit
1a11efec58
@@ -46,7 +46,13 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <endian.h>
|
|
||||||
|
#if defined(__linux__) || defined(__GLIBC__)
|
||||||
|
# include <endian.h>
|
||||||
|
# include <byteswap.h>
|
||||||
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
|
# include <sys/endian.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user