git: e068871adbf2 - main - audio/id3edit: fix build on BE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Sep 2025 08:37:27 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e068871adbf2ba387628ecbb1d3de6fa81622ca4
commit e068871adbf2ba387628ecbb1d3de6fa81622ca4
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-09-17 05:46:25 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-09-17 08:37:15 +0000
audio/id3edit: fix build on BE
sys/_endian.h should probably include sys/types.h:
/wrkdirs/usr/ports/audio/id3edit/work/id3edit-2.2.1/encoding/size.c:25:15: error: use of undeclared identifier 'uint32_t'
25 | encsize = htobe32(tmp);
| ^
/usr/include/sys/_endian.h:119:22: note: expanded from macro 'htobe32'
119 | #define htobe32(x) ((uint32_t)(x))
| ^
/wrkdirs/usr/ports/audio/id3edit/work/id3edit-2.2.1/encoding/size.c:34:11: error: use of undeclared identifier 'uint32_t'
34 | tmp = be32toh(encsize);
| ^
/usr/include/sys/_endian.h:126:22: note: expanded from macro 'be32toh'
126 | #define be32toh(x) ((uint32_t)(x))
| ^
2 errors generated.
---
audio/id3edit/files/patch-encoding_size.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/audio/id3edit/files/patch-encoding_size.c b/audio/id3edit/files/patch-encoding_size.c
new file mode 100644
index 000000000000..fc385beabdba
--- /dev/null
+++ b/audio/id3edit/files/patch-encoding_size.c
@@ -0,0 +1,10 @@
+--- encoding/size.c.orig 2025-09-17 05:47:49 UTC
++++ encoding/size.c
+@@ -5,6 +5,7 @@
+ #include <endian.h>
+ #endif
+ #include <encoding/size.h>
++#include <sys/types.h>
+
+
+ unsigned int ID3V2_EncodeSize(unsigned int size)