At least on FreeBSD, i need this patch to get a clean
AST_DEVMODE build.
I know that there might be different version for iconv(), so
can
someone let me know if this patch breaks anything on linux
?
Index: funcs/func_iconv.c
============================================================
=======
--- funcs/func_iconv.c (revision 72740)
+++ funcs/func_iconv.c (working copy)
 -82,7
+82,7 
return -1;
}
- if (iconv(cd, &args.text, &incount,
&buf, &outcount) == (size_t) -1) {
+ if (iconv(cd, (const char **)&args.text,
&incount, &buf, &outcount) == (size_t) -1) {
if (errno == E2BIG)
ast_log(LOG_WARNING, "Iconv:
output buffer too small.n");
else if (errno == EILSEQ)
thanks
luigi
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
|