Date: Thu, 21 Jul 2022 20:19:05 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 80122a73d562 - main - audio/zita-alsa-pcmi: Correct patch Message-ID: <202207212019.26LKJ57M036046@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=80122a73d56247a6df95419ab3d0144fd213bc78 commit 80122a73d56247a6df95419ab3d0144fd213bc78 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-07-21 20:18:26 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-07-21 20:19:02 +0000 audio/zita-alsa-pcmi: Correct patch ... such that it doesn't require infiniband/byteswap.h --- audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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,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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207212019.26LKJ57M036046>