]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_initscr.c
ncurses 5.6 - patch 20080816
[ncurses.git] / ncurses / base / lib_initscr.c
index 6fc2fb0a00719786247874202abdf9064d29dc0b..b2fef0c1d0854651eb01eb9b39941afa3bb84cb0 100644 (file)
@@ -45,7 +45,7 @@
 #include <sys/termio.h>                /* needed for ISC */
 #endif
 
 #include <sys/termio.h>                /* needed for ISC */
 #endif
 
-MODULE_ID("$Id: lib_initscr.c,v 1.37 2008/06/07 14:00:12 tom Exp $")
+MODULE_ID("$Id: lib_initscr.c,v 1.38 2008/08/16 21:20:48 Werner.Fink Exp $")
 
 NCURSES_EXPORT(WINDOW *)
 initscr(void)
 
 NCURSES_EXPORT(WINDOW *)
 initscr(void)
@@ -57,7 +57,9 @@ initscr(void)
     START_TRACE();
     T((T_CALLED("initscr()")));
 
     START_TRACE();
     T((T_CALLED("initscr()")));
 
+    _nc_init_pthreads();
     _nc_lock_global(curses);
     _nc_lock_global(curses);
+
     /* Portable applications must not call initscr() more than once */
     if (!_nc_globals.init_screen) {
        _nc_globals.init_screen = TRUE;
     /* Portable applications must not call initscr() more than once */
     if (!_nc_globals.init_screen) {
        _nc_globals.init_screen = TRUE;