libiconv-full: fix build with fortify source
[openwrt.git] / package / libs / libiconv-full / patches / 300-fortify-source-compat.patch
1 --- a/m4/canonicalize.m4
2 +++ b/m4/canonicalize.m4
3 @@ -11,8 +11,6 @@ AC_DEFUN([gl_CANONICALIZE],
4    AC_CHECK_FUNCS(canonicalize_file_name)
5    if test $ac_cv_func_canonicalize_file_name = no; then
6      AC_LIBOBJ(canonicalize)
7 -    AC_DEFINE([realpath], [rpl_realpath],
8 -      [Define to a replacement function name for realpath().])
9      gl_PREREQ_CANONICALIZE
10    fi
11  ])
12 --- a/configure
13 +++ b/configure
14 @@ -35532,9 +35532,6 @@ done
15    if test $ac_cv_func_canonicalize_file_name = no; then
16      SRCLIBOBJS="$SRCLIBOBJS canonicalize.$ac_objext"
17  
18 -cat >>confdefs.h <<\_ACEOF
19 -#define realpath rpl_realpath
20 -_ACEOF
21  
22  
23