mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
Use glibc endianness-related headers if available
BSD headers aren't working properly on kFreeBSD, so use the glibc ones.
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || defined(__GLIBC__)
|
||||||
# include <endian.h>
|
# include <endian.h>
|
||||||
# include <byteswap.h>
|
# include <byteswap.h>
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
|
|||||||
Reference in New Issue
Block a user