Index: zsh-4.0.2/acconfig.h diff -c zsh-4.0.2/acconfig.h:1.1 zsh-4.0.2/acconfig.h:1.2 *** zsh-4.0.2/acconfig.h:1.1 Wed Oct 10 07:27:41 2001 --- zsh-4.0.2/acconfig.h Wed Oct 10 07:56:29 2001 *************** *** 323,325 **** --- 323,328 ---- /* Define to the base type of the third argument of accept */ #undef SOCKLEN_T + + /* Define if you have an empty declaration of boolcodes. */ + #undef BROKEN_BOOLCODES_DECL Index: zsh-4.0.2/aclocal.m4 diff -c zsh-4.0.2/aclocal.m4:1.1 zsh-4.0.2/aclocal.m4:1.2 *** zsh-4.0.2/aclocal.m4:1.1 Wed Oct 10 07:27:41 2001 --- zsh-4.0.2/aclocal.m4 Wed Oct 10 07:56:29 2001 *************** *** 47,53 **** CFLAGS="$ac_save_CFLAGS" ]) case "x$fp_cv_prog_cc_stdc" in ! x|xno) ;; *) CC="$CC $fp_cv_prog_cc_stdc" ;; esac ]) --- 47,53 ---- CFLAGS="$ac_save_CFLAGS" ]) case "x$fp_cv_prog_cc_stdc" in ! x|xno|x'') ;; *) CC="$CC $fp_cv_prog_cc_stdc" ;; esac ]) Index: zsh-4.0.2/config.h.in diff -c zsh-4.0.2/config.h.in:1.2 zsh-4.0.2/config.h.in:1.3 *** zsh-4.0.2/config.h.in:1.2 Wed Oct 10 08:00:49 2001 --- zsh-4.0.2/config.h.in Wed Oct 10 08:01:11 2001 *************** *** 391,396 **** --- 391,399 ---- /* Define to the base type of the third argument of accept */ #undef SOCKLEN_T + /* Define if you have an empty declaration of boolcodes. */ + #undef BROKEN_BOOLCODES_DECL + /* Define if you have the _mktemp function. */ #undef HAVE__MKTEMP Index: zsh-4.0.2/zshconfig.ac diff -c zsh-4.0.2/zshconfig.ac:1.1 zsh-4.0.2/zshconfig.ac:1.2 *** zsh-4.0.2/zshconfig.ac:1.1 Wed Oct 10 07:27:41 2001 --- zsh-4.0.2/zshconfig.ac Wed Oct 10 07:56:29 2001 *************** *** 593,598 **** --- 593,601 ---- #include ], [char **test = boolcodes; printf(*test);], AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no) AC_MSG_RESULT($boolcodes) + if test "x$boolcodes_with_curses_h_and_term_h" = xyes && test "x$boolcodes" = xno; then + AC_DEFINE(BROKEN_BOOLCODES_DECL) + fi AC_MSG_CHECKING(if numcodes is available) AC_TRY_LINK([#ifdef TERM_H_NEEDS_CURSES_H #include Index: zsh-4.0.2/Src/Modules/termcap.c diff -c zsh-4.0.2/Src/Modules/termcap.c:1.1.1.1 zsh-4.0.2/Src/Modules/termcap.c:1.3 *** zsh-4.0.2/Src/Modules/termcap.c:1.1.1.1 Wed Oct 10 07:27:41 2001 --- zsh-4.0.2/Src/Modules/termcap.c Wed Oct 10 09:01:08 2001 *************** *** 55,64 **** --- 55,70 ---- # ifdef HAVE_TERMIO_H # include # endif + # ifdef BROKEN_BOOLCODES_DECL + # define boolcodes _BAD_BOOLCODES_DECL + # endif # ifdef TERM_H_NEEDS_CURSES_H # include # endif # include + # ifdef BROKEN_BOOLCODES_DECL + # undef boolcodes + # endif # else # ifdef USES_TERMCAP_H # include