libiconv: add external var _libiconv_version

This is needed by php5 and also provieded by the libiconv-full


git-svn-id: svn://svn.openwrt.org/openwrt/packages@24775 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke 2010-12-22 01:56:37 +00:00
parent 00116b4ac8
commit 07a63d8c9c
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -3,8 +3,9 @@
*/
#include <stddef.h>
#include <iconv.h>
typedef void *iconv_t;
int _libiconv_version = _LIBICONV_VERSION;
iconv_t iconv_open (const char *tocode, const char *fromcode)
{

View File

@ -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 <stddef.h>
typedef void *iconv_t;