diff options
author | Gleb Popov <6yearold@gmail.com> | 2019-11-09 23:29:58 +0400 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-11-19 13:41:40 +0100 |
commit | aec64336fee83c6e6367274f7779249dbeffa243 (patch) | |
tree | 99c1c93fa1507254958ca8f275657f6343ca513f | |
parent | fd937fa37831c4f7ada03caa7461c65da923ace0 (diff) |
Do not try to include endian.h on FreeBSD.
-rw-r--r-- | spa/include/spa/param/audio/layout.h | 2 | ||||
-rw-r--r-- | spa/include/spa/param/audio/raw.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spa/include/spa/param/audio/layout.h b/spa/include/spa/param/audio/layout.h index 6dca7992..41601c3d 100644 --- a/spa/include/spa/param/audio/layout.h +++ b/spa/include/spa/param/audio/layout.h @@ -29,7 +29,9 @@ extern "C" { #endif +#ifndef __FreeBSD__ #include <endian.h> +#endif #define SPA_AUDIO_LAYOUT_Mono 1, SPA_AUDIO_CHANNEL_MONO #define SPA_AUDIO_LAYOUT_Stereo 2, SPA_AUDIO_CHANNEL_FL, SPA_AUDIO_CHANNEL_FR diff --git a/spa/include/spa/param/audio/raw.h b/spa/include/spa/param/audio/raw.h index 40a86a5f..3fff56ad 100644 --- a/spa/include/spa/param/audio/raw.h +++ b/spa/include/spa/param/audio/raw.h @@ -29,7 +29,9 @@ extern "C" { #endif +#ifndef __FreeBSD__ #include <endian.h> +#endif #define SPA_AUDIO_MAX_CHANNELS 64u |