--- orig-cwin.c Sun May 9 14:56:57 1999 +++ cwin.c Sat Sep 30 21:29:50 2000 @@ -198,10 +198,11 @@ crmode(); noecho(); clear(); } +#ifdef USE_SIGWINCH /* Restart curses... window size has changed. */ static RETSIGTYPE curses_restart() { @@ -225,14 +226,13 @@ refresh(); curses_redraw(); /* some systems require we do this again */ -#ifdef SIGWINCH signal(SIGWINCH, curses_restart); -#endif } +#endif /* ---- global functions ---- */ void init_curses() @@ -240,13 +240,12 @@ curses_start(); refresh(); head = NULL; add_fd(0, curses_input); /* set up user's input function */ +#ifdef USE_SIGWINCH /* set up SIGWINCH signal handler */ - -#ifdef SIGWINCH signal(SIGWINCH, curses_restart); #endif } void --- /usr/src/ytalk-3.1.1/exec.c 1999-05-09 18:07:39.000000000 -0700 +++ exec.c 2016-07-25 13:18:41.773979079 -0700 @@ -50,6 +50,8 @@ #if defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT) && defined(HAVE_UNLOCKPT) # define USE_DEV_PTMX +/* We can't just #include because glib's ptsname requires _XOPEN_SOURCE and using that fucks up ytalk's typedefs */ +extern char *ptsname (int __fd) __THROW __wur; #endif int running_process = 0; /* flag: is process running? */