diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-25 12:13:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-25 12:13:57 +0000 |
commit | a98549b8ecf41718f224c79c8debb1a31400b231 (patch) | |
tree | 38f581ce8c09d637406c276b2912409a4e84ffa7 /package/libs/libiconv-full/patches/300-fortify-source-compat.patch | |
parent | 9b0128251566d34a7cad973baca4b43948d4cac1 (diff) | |
download | master-31e0f0ae-a98549b8ecf41718f224c79c8debb1a31400b231.tar.gz master-31e0f0ae-a98549b8ecf41718f224c79c8debb1a31400b231.tar.bz2 master-31e0f0ae-a98549b8ecf41718f224c79c8debb1a31400b231.zip |
libiconv-full: fix build with fortify source
Avoid redefining `realpath` to fix the following error:
.../include/fortify/stdlib.h:36:13: error: 'realpath' undeclared here (not in a function)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 46127
Diffstat (limited to 'package/libs/libiconv-full/patches/300-fortify-source-compat.patch')
-rw-r--r-- | package/libs/libiconv-full/patches/300-fortify-source-compat.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/libs/libiconv-full/patches/300-fortify-source-compat.patch b/package/libs/libiconv-full/patches/300-fortify-source-compat.patch new file mode 100644 index 0000000000..e7e92235e5 --- /dev/null +++ b/package/libs/libiconv-full/patches/300-fortify-source-compat.patch @@ -0,0 +1,23 @@ +--- a/m4/canonicalize.m4 ++++ b/m4/canonicalize.m4 +@@ -11,8 +11,6 @@ AC_DEFUN([gl_CANONICALIZE], + AC_CHECK_FUNCS(canonicalize_file_name) + if test $ac_cv_func_canonicalize_file_name = no; then + AC_LIBOBJ(canonicalize) +- AC_DEFINE([realpath], [rpl_realpath], +- [Define to a replacement function name for realpath().]) + gl_PREREQ_CANONICALIZE + fi + ]) +--- a/configure ++++ b/configure +@@ -35532,9 +35532,6 @@ done + if test $ac_cv_func_canonicalize_file_name = no; then + SRCLIBOBJS="$SRCLIBOBJS canonicalize.$ac_objext" + +-cat >>confdefs.h <<\_ACEOF +-#define realpath rpl_realpath +-_ACEOF + + + |