mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Don't include byteswap.h on FreeBSD, use sys/endian.h instead
This commit is contained in:
parent
651f0decea
commit
e94adaac24
1 changed files with 6 additions and 0 deletions
|
|
@ -23,7 +23,13 @@
|
|||
*/
|
||||
|
||||
#include <math.h>
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/endian.h>
|
||||
#define bswap_16 bswap16
|
||||
#define bswap_32 bswap32
|
||||
#else
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue