summaryrefslogtreecommitdiff
path: root/package/libs/libiconv
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-18 09:23:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2016-01-18 09:23:17 +0000
commit1bd8400752dc5e24b77ea83129c7b4a842ccdb10 (patch)
tree366568046dbed4dbdcc721b5866761a4ae4cee97 /package/libs/libiconv
parentcdfeab093162f7f8fe63ed12b3885395825ae70f (diff)
downloadmtk-20170518-1bd8400752dc5e24b77ea83129c7b4a842ccdb10.zip
mtk-20170518-1bd8400752dc5e24b77ea83129c7b4a842ccdb10.tar.gz
mtk-20170518-1bd8400752dc5e24b77ea83129c7b4a842ccdb10.tar.bz2
package/libs/libiconv: function names
Currently libiconv-stub and libiconv-full use different names for functions iconv, iconv_open, and iconv_close. This may lead to failures when building modules, e.g. with apr-util when NLS is not activated. The two modules libiconv-stub and libiconv-full should be interchangeable, so we need the same function names. cf. http://git.savannah.gnu.org/cgit/libiconv.git/tree/include/iconv.h.in After applying this patch execute make distclean Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> SVN-Revision: 48301
Diffstat (limited to 'package/libs/libiconv')
-rw-r--r--package/libs/libiconv/src/include/iconv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libs/libiconv/src/include/iconv.h b/package/libs/libiconv/src/include/iconv.h
index dfab27f..64acb6f 100644
--- a/package/libs/libiconv/src/include/iconv.h
+++ b/package/libs/libiconv/src/include/iconv.h
@@ -13,6 +13,10 @@ extern int _libiconv_version; /* Likewise */
typedef long iconv_t;
+#define iconv_open libiconv_open
+#define iconv libiconv
+#define iconv_close libiconv_close
+
extern iconv_t
iconv_open(const char *tocode, const char *fromcode);