Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Make Failure on SunOS-4.1 (correction)
- X-seq: zsh-workers 14101
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Vin Shelton <shelton@xxxxxxxxxxxxxxxx>
- Subject: Re: Make Failure on SunOS-4.1 (correction)
- Date: Thu, 26 Apr 2001 04:35:55 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1010426042751.ZM11961@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <54566fu13tt.fsf@xxxxxxxxxxxxxxxx> <1010425041307.ZM10317@xxxxxxxxxxxxxxxxxxxxxxx> <545y9spyrwy.fsf@xxxxxxxxxxxxxxxx> <1010425145840.ZM11172@xxxxxxxxxxxxxxxxxxxxxxx> <545itjsx3ec.fsf@xxxxxxxxxxxxxxxx> <1010426042751.ZM11961@xxxxxxxxxxxxxxxxxxxxxxx>
On Apr 26, Bart Schaefer wrote:
}
} Ah, distant memory begins to return ... try the following patch
Except that I botched it and sent a broken patch. Here's the right one:
diff -u -x CVS zsh-forge/current/Src/Modules/termcap.c zsh-4.0/Src/Modules/termcap.c
--- zsh-forge/current/Src/Modules/termcap.c Mon Apr 23 23:43:27 2001
+++ zsh-4.0/Src/Modules/termcap.c Wed Apr 25 21:29:17 2001
@@ -27,36 +27,37 @@
*
*/
-#define USES_TERMCAP_H 1
-#define USES_TERM_H 1
+#ifdef HAVE_TGETENT
+# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
+# define USES_TERM_H 1
+# else
+# ifdef HAVE_TERMCAP_H
+# define USES_TERMCAP_H 1
+# endif
+# endif
+#endif
+
#include "termcap.mdh"
#include "termcap.pro"
static char termcap_nam[] = "termcap";
-/* echotc: output a termcap */
-
#ifdef HAVE_TGETENT
-# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
+# ifdef USES_TERM_H
# ifdef HAVE_TERMIO_H
# include <termio.h>
# endif
# include <curses.h>
# include <term.h>
# else
-# ifdef HAVE_TERMCAP_H
+# ifdef USES_TERMCAP_H
# include <termcap.h>
-# else
-# ifdef HAVE_CURSES_H
-# include <curses.h>
-# endif
-# ifdef HAVE_TERM_H
-# include <term.h>
-# endif
# endif
# endif
static Param termcap_pm;
+
+/* echotc: output a termcap */
/**/
static int
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author