Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Missing ERR define



I'm compiling zsh on a debian sarge system without using the curses
libraries (i.e. I'm not specifying --with-curses-terminfo).  This setup
skips the check for curses.h.  Unfortunately, that means that ERR does
not get defined (since it is only found in curses.h and ncurses.h on my
system), and thus the compiling of Src/Modules/terminfo.c fails.

The attached patch defines ERR to -1 if it is not already defined.  Is
this the right way to deal with this?

..wayne..
--- Src/Modules/terminfo.c	14 Sep 2003 05:10:09 -0000	1.22
+++ Src/Modules/terminfo.c	19 Feb 2004 10:16:06 -0000
@@ -50,6 +50,9 @@ static char terminfo_nam[] = "terminfo";
 # ifdef HAVE_TERM_H
 #  include <term.h>
 # endif
+# ifndef ERR
+#  define ERR (-1)
+# endif
 
 static Param terminfo_pm;
 


Messages sorted by: Reverse Date, Date, Thread, Author