e068871adb
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.
11 lines
220 B
C
11 lines
220 B
C
--- 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)
|