]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/term.priv.h
ncurses 6.2 - patch 20211017
[ncurses.git] / ncurses / term.priv.h
index f31e9f587bc106ba6672eb3ad5d8ec3bd958584b..ce7a986bd9edb50e507c88f635985187f5144ffc 100644 (file)
@@ -27,7 +27,7 @@
  ****************************************************************************/
 
 /*
- * $Id: term.priv.h,v 1.4 2021/08/19 20:02:09 tom Exp $
+ * $Id: term.priv.h,v 1.6 2021/09/26 20:43:08 tom Exp $
  *
  *     term.priv.h
  *
@@ -55,6 +55,12 @@ extern "C" {
 #include <time.h>              /* time_t */
 #include <term.h>              /* time_t */
 
+#ifdef USE_PTHREADS
+#if USE_REENTRANT
+#include <pthread.h>
+#endif
+#endif
+
 /*
  * State of tparm().
  */
@@ -102,11 +108,6 @@ typedef struct {
 /*
  * Internals for term.h
  */
-
-#if NCURSES_EXT_COLORS
-typedef struct termtype2  TERMTYPE2;
-#endif
-
 typedef struct term {                  /* describe an actual terminal */
        TERMTYPE        type;           /* terminal type description */
        short           Filedes;        /* file description being written to */
@@ -118,6 +119,7 @@ typedef struct term {                       /* describe an actual terminal */
 #if NCURSES_EXT_COLORS
        TERMTYPE2       type2;          /* extended terminal type description */
 #endif
+#undef TERMINAL
 } TERMINAL;
 
 /*