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.
This commit is contained in:
Piotr Kubaj 2025-09-17 07:46:25 +02:00
parent 9d3cacbbdf
commit e068871adb
1 changed files with 10 additions and 0 deletions

View File

@ -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)