aboutsummaryrefslogtreecommitdiffstats
path: root/community/ttaenc/fix-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ttaenc/fix-musl.patch')
-rw-r--r--community/ttaenc/fix-musl.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/ttaenc/fix-musl.patch b/community/ttaenc/fix-musl.patch
new file mode 100644
index 0000000000..2be6bb486f
--- /dev/null
+++ b/community/ttaenc/fix-musl.patch
@@ -0,0 +1,17 @@
+--- ttaenc-3.4.1-src/ttaenc.h.orig
++++ ttaenc-3.4.1-src/ttaenc.h
+@@ -101,8 +101,13 @@
+ typedef unsigned __int32 uint32;
+ typedef unsigned __int64 uint64;
+ #else
++#if __GLIBC__
+ typedef __uint32_t uint32;
+ typedef __uint64_t uint64;
++#else
++typedef uint32_t uint32;
++typedef uint64_t uint64;
++#endif
+ #endif
+
+ #define PREDICTOR1(x, k) ((int)((((uint64)x << k) - x) >> k))
+