From e068871adbf2ba387628ecbb1d3de6fa81622ca4 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 17 Sep 2025 07:46:25 +0200 Subject: [PATCH] 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(+) create mode 100644 audio/id3edit/files/patch-encoding_size.c 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 + #endif + #include ++#include + + + unsigned int ID3V2_EncodeSize(unsigned int size)