diff --git a/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc b/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc index fffd2fc20f16..15eea497f5d1 100644 --- a/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc +++ b/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc @@ -1,20 +1,19 @@ --- source/zita-alsa-pcmi.cc.orig 2022-07-14 07:07:32 UTC +++ source/zita-alsa-pcmi.cc -@@ -18,9 +18,17 @@ +@@ -18,9 +18,16 @@ // ---------------------------------------------------------------------------- +#if defined(__FreeBSD__) -+#include ++# include ++# define bswap_32(x) bswap32(x) +#else #include +#endif #include -+#if defined(__FreeBSD__) -+#include -+#else ++#if !defined(__FreeBSD__) #include +#endif #include #include "zita-alsa-pcmi.h"