$NetBSD: patch-al,v 1.2 2000/02/29 15:28:49 minoura Exp $ --- ./uip/vmh.c.orig Tue Feb 9 20:30:00 1999 +++ ./uip/vmh.c Tue Feb 29 23:19:05 2000 @@ -23,6 +23,9 @@ If curses ever gets fixed, then XYZ code can be removed */ +#ifdef UNISTD +#include +#endif #ifdef __osf__ #define _BSD #endif @@ -85,9 +88,15 @@ #define _maxy maxy #define _curx curx /* curses.h */ #define _cury cury +#ifndef __NetBSD__ void __cputchar __P((int)); +#endif #undef _putchar +#ifdef BSD44 +#define _putchar __cputchar +#else #define _putchar (int (*)()) __cputchar +#endif #include /* sgttyb */ #endif /* !__NCURSES_H && (BSD44 || linux) */ @@ -1509,7 +1518,7 @@ tpgrp; TYPESIG (*tstat) (); - if ((pgrp = getpgrp (0)) == NOTOK) + if ((pgrp = getpgrp (/*0*/)) == NOTOK) adios ("process group", "unable to determine"); for (;;) { if (ioctl (fileno (stdin), TIOCGPGRP, (char *) &tpgrp) == NOTOK)