$NetBSD: patch-ac,v 1.6 2012/09/09 19:49:45 dholland Exp $

 - don't declare own errno
 - don't use curses internals

--- netconsole/help_page.c.orig	1998-07-31 18:22:13.000000000 +0000
+++ netconsole/help_page.c
@@ -38,11 +38,10 @@
 # define HELPFILE	"helpfile"
 #endif
 
-#define WFULL(w)  	(w->_cury == (w->_maxy - 2)) ? 1:0
+#define WFULL(w)        (getcury(w) == (getmaxy(w) - 2)) ? 1:0
 
 help_page()
 {
-    extern int errno;
     extern char *helpfile ;			/* In netconsole.h  */
     WINDOW *hwin;
     char buffer[MAXLINE], *strcat() ;
