Provide compat functions for wcsl{cpy,cat}().

This commit is contained in:
Felicity Tarnell 2014-03-08 13:03:19 +00:00
parent 684c581b32
commit 7c26144e31
6 changed files with 118 additions and 10 deletions

11
configure vendored
View file

@ -2225,7 +2225,7 @@ case $host_os in
CPPFLAGS="$CPPFLAGS -D_NETBSD_SOURCE"
;;
solaris*)
CPPFLAGS="-D__EXTENSIONS__ -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64"
CPPFLAGS="-D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64"
;;
esac
@ -3872,12 +3872,13 @@ fi
oLIBS="$LIBS"
LIBS="$LIBS $CURSES_LIB"
for ac_func in use_default_colors
for ac_func in use_default_colors wcslcpy wcslcat
do :
ac_fn_c_check_func "$LINENO" "use_default_colors" "ac_cv_func_use_default_colors"
if test "x$ac_cv_func_use_default_colors" = xyes; then :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_USE_DEFAULT_COLORS 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi