diff --git a/libs/libiconv/Makefile b/libs/libiconv/Makefile index ccce71d03..d51b47fba 100644 --- a/libs/libiconv/Makefile +++ b/libs/libiconv/Makefile @@ -27,7 +27,7 @@ define Build/Configure endef define Build/Compile - $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o + $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include $(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o endef diff --git a/libs/libiconv/src/iconv.c b/libs/libiconv/src/iconv.c index 5834f6173..e85b99a22 100644 --- a/libs/libiconv/src/iconv.c +++ b/libs/libiconv/src/iconv.c @@ -3,8 +3,9 @@ */ #include +#include -typedef void *iconv_t; +int _libiconv_version = _LIBICONV_VERSION; iconv_t iconv_open (const char *tocode, const char *fromcode) { diff --git a/libs/libiconv/src/include/iconv.h b/libs/libiconv/src/include/iconv.h index bca749a66..29c2d2a6f 100644 --- a/libs/libiconv/src/include/iconv.h +++ b/libs/libiconv/src/include/iconv.h @@ -5,6 +5,9 @@ #ifndef _ICONV_H #define _ICONV_H 1 +#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */ +extern int _libiconv_version; /* Likewise */ + #include typedef void *iconv_t;