svn commit: r544768 - head/audio/opustags/files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Aug 12 20:50:26 UTC 2020
Author: pkubaj
Date: Wed Aug 12 20:50:25 2020
New Revision: 544768
URL: https://svnweb.freebsd.org/changeset/ports/544768
Log:
audio/opustags: fix build on GCC architectures
GCC doesn't include sys/endian.h by default:
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function 'ot::status ot::parse_tags(const ogg_packet&, ot::opus_tags&)':
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:58:25: error: 'le32toh' was not declared in this scope
58 | size_t vendor_length = le32toh(*((uint32_t*) (data + pos)));
| ^~~~~~~
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function 'ot::dynamic_ogg_packet ot::render_tags(const ot::opus_tags&)':
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:107:6: error: 'htole32' was not declared in this scope
107 | n = htole32(tags.vendor.size());
| ^~~~~~~
Added:
head/audio/opustags/files/
head/audio/opustags/files/patch-src_opus.cc (contents, props changed)
Added: head/audio/opustags/files/patch-src_opus.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/opustags/files/patch-src_opus.cc Wed Aug 12 20:50:25 2020 (r544768)
@@ -0,0 +1,10 @@
+--- src/opus.cc.orig 2020-08-12 14:10:18 UTC
++++ src/opus.cc
+@@ -24,6 +24,7 @@
+
+ #include <opustags.h>
+
++#include <sys/endian.h>
+ #include <string.h>
+
+ #ifdef __APPLE__
More information about the svn-ports-head
mailing list