aboutsummaryrefslogtreecommitdiffstats
path: root/main/iaxmodem/iaxmodem-fix.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-17 07:33:56 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-17 07:33:56 +0000
commitd3994f6692e69224deeb763604a4f7c9c946ca08 (patch)
tree6ea4a545323299e29b006da782ed193accba4f1b /main/iaxmodem/iaxmodem-fix.patch
parentafd299997b829913d2a08ce197a95355658f7a1b (diff)
downloadaports-d3994f6692e69224deeb763604a4f7c9c946ca08.tar.bz2
aports-d3994f6692e69224deeb763604a4f7c9c946ca08.tar.xz
main/iaxmodem: fix musl build
Diffstat (limited to 'main/iaxmodem/iaxmodem-fix.patch')
-rw-r--r--main/iaxmodem/iaxmodem-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/iaxmodem/iaxmodem-fix.patch b/main/iaxmodem/iaxmodem-fix.patch
new file mode 100644
index 0000000000..ab4db6b31a
--- /dev/null
+++ b/main/iaxmodem/iaxmodem-fix.patch
@@ -0,0 +1,23 @@
+--- iaxmodem-1.2.0.orig/lib/libiax2/src/iax.c
++++ iaxmodem-1.2.0/lib/libiax2/src/iax.c
+@@ -77,9 +77,6 @@
+
+ #if !defined(MACOSX) && !defined(__OpenBSD__)
+ #include <malloc.h>
+-#if !defined(SOLARIS)
+-#include <error.h>
+-#endif
+ #endif
+
+ #endif
+--- iaxmodem-1.2.0.orig/lib/libiax2/src/md5.c
++++ iaxmodem-1.2.0/lib/libiax2/src/md5.c
+@@ -177,7 +177,7 @@
+ MD5Transform(ctx->buf, (uint32_t *) ctx->in);
+ byteReverse((uint8_t *) ctx->buf, 4);
+ memcpy(digest, ctx->buf, 16);
+- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
++ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
+ }
+
+ #ifndef ASM_MD5