package/libs/libiconv: function names
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 09:23:17 +0000 (09:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 09:23:17 +0000 (09:23 +0000)
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

package/libs/libiconv/src/include/iconv.h

index dfab27f053b69e4ad4d5fcc29b9fd0048058cf2a..64acb6fd5659bc34596dc07cc974e0ba21259af3 100644 (file)
@@ -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);