comparison src/terminfo.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 376386a54a3c
children 74fd4e045ea6
comparison
equal deleted inserted replaced
148:f659db2a1f73 149:538048ae2ab8
46 like their termcap counterparts except for tparm, which replaces 46 like their termcap counterparts except for tparm, which replaces
47 tgoto. Not only is the calling sequence different, but the string 47 tgoto. Not only is the calling sequence different, but the string
48 format is different too. 48 format is different too.
49 */ 49 */
50 50
51 #ifdef HAVE_NCURSES_CURSES_H 51 #include CURSES_H_PATH
52 #include <ncurses/curses.h>
53 #else
54 #include <curses.h>
55 #endif
56 #if !(defined (__GNUC__) && defined (SOLARIS2))
57 /* Sun, in their infinite lameness, supplies (possibly) broken headers 52 /* Sun, in their infinite lameness, supplies (possibly) broken headers
58 even under Solaris. GCC feels it necessary to correct things by 53 even under Solaris. GCC feels it necessary to correct things by
59 supplying its own headers. Unfortunately, if you build GCC under 54 supplying its own headers. Unfortunately, if you build GCC under
60 one version of Solaris and then upgrade your Solaris, you may get 55 one version of Solaris and then upgrade your Solaris, you may get
61 screwed because Sun in their continuing lameness changes curses.h 56 screwed because Sun in their continuing lameness changes curses.h
62 in such a way that the "fixed" GCC headers are now broken. (GCC 57 in such a way that the "fixed" GCC headers are now broken. (GCC
63 is equally lame in that it supplies "fixed" headers for curses.h 58 is equally lame in that it supplies "fixed" headers for curses.h
64 but not term.h.) However, it seems to work to just not include 59 but not term.h.) However, it seems to work to just not include
65 term.h under Solaris, so we try that. KLUDGE! */ 60 term.h under Solaris, so we try that. KLUDGE! */
66 #ifdef HAVE_NCURSES_TERM_H 61 #if !(defined (__GNUC__) && defined (SOLARIS2))
67 #include <ncurses/term.h> 62 #include TERM_H_PATH
68 #else
69 #include <term.h>
70 #endif
71 #endif 63 #endif
72 64
73 extern void *xmalloc (int size); 65 extern void *xmalloc (int size);
74 66
75 #if 0 /* If this isn't declared somewhere, too bad */ 67 #if 0 /* If this isn't declared somewhere, too bad */