mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Always redefine del_curterm to be a no-op under bsd, seeme the double free bug can surface under ncurses as well. Thanks to Netocrat.
darcs-hash:20060811100756-ac50b-1b1010b696fdd9acf45ef85ab19e75f574e5198b.gz
This commit is contained in:
parent
e784683b8a
commit
a5abdd2792
1 changed files with 3 additions and 3 deletions
|
@ -376,14 +376,14 @@ else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we are using basic BSD curses - in that case we redefine
|
# Check if del_curterm is broken - in that case we redefine
|
||||||
# del_curterm as a no-op, to avoid a double-free
|
# del_curterm as a no-op, to avoid a double-free
|
||||||
|
|
||||||
AC_MSG_CHECKING([If we are using BSD curses])
|
AC_MSG_CHECKING([If del_curterm is broken])
|
||||||
case $target_os in
|
case $target_os in
|
||||||
*bsd*)
|
*bsd*)
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AC_CHECK_LIB( ncurses, del_curterm, true, [AC_DEFINE([HAVE_BROKEN_DEL_CURTERM],[1],[We are using basic BSD curses, redefine del_curterm to a no-op to avoid a double-free bug])])
|
AC_DEFINE([HAVE_BROKEN_DEL_CURTERM],[1],[del_curterm si broken, redefine it to a no-op to avoid a double-free bug])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
Loading…
Reference in a new issue