From a5abdd2792e784662b8eef69255c63860c6dcbc2 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 11 Aug 2006 20:07:56 +1000 Subject: [PATCH] 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e42adf9fb..42bee5044 100644 --- a/configure.ac +++ b/configure.ac @@ -376,14 +376,14 @@ else AC_MSG_RESULT(no) 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 -AC_MSG_CHECKING([If we are using BSD curses]) +AC_MSG_CHECKING([If del_curterm is broken]) case $target_os in *bsd*) 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)