Skip to content

Commit

Permalink
audio/zita-alsa-pcmi: Correct patch
Browse files Browse the repository at this point in the history
... such that it doesn't require infiniband/byteswap.h

(cherry picked from commit 80122a7)
  • Loading branch information
yurivict committed Jul 21, 2022
1 parent 1b54b47 commit 510e77c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc
@@ -1,18 +1,17 @@
--- 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 <machine/endian.h>
+# include <machine/endian.h>
+# define bswap_32(x) bswap32(x)
+#else
#include <endian.h>
+#endif
#include <stdint.h>
+#if defined(__FreeBSD__)
+#include <infiniband/byteswap.h>
+#else
+#if !defined(__FreeBSD__)
#include <byteswap.h>
+#endif
#include <sys/time.h>
Expand Down

0 comments on commit 510e77c

Please sign in to comment.