summaryrefslogtreecommitdiff
path: root/shells/zsh/patches/patch-ba
blob: b8805673b9134f11c744f48f67c0d60b8ad1a170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
termcap does not require curses.

--- Src/Modules/termcap.c.orig	2010-02-07 08:52:07.000000000 +0000
+++ Src/Modules/termcap.c	2010-02-07 08:54:03.000000000 +0000
@@ -27,22 +27,10 @@
  *
  */
 
-/*
- * We need to include the zsh headers later to avoid clashes with
- * the definitions on some systems, however we need the configuration
- * file to decide whether we should avoid curses.h, which clashes
- * with several zsh constants on some systems (e.g. SunOS 4).
- */
 #include "../../config.h"
 
 #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
+# define USES_TERMCAP_H 1
 #endif
 
 #include "termcap.mdh"
@@ -51,19 +39,7 @@
 static char termcap_nam[] = "termcap";
 
 #ifdef HAVE_TGETENT
-# ifdef USES_TERM_H
-#  ifdef HAVE_TERMIO_H
-#   include <termio.h>
-#  endif
-#  ifdef TERM_H_NEEDS_CURSES_H
-#   include <curses.h>
-#  endif
-#  include <term.h>
-# else
-#  ifdef USES_TERMCAP_H
-#   include <termcap.h>
-#  endif
-# endif
+# include <termcap.h>
 
 static Param termcap_pm;