$NetBSD: patch-bb,v 1.3 2010/03/10 08:19:57 roy Exp $

--- Src/Modules/terminfo.c.orig	2010-03-10 07:58:30.000000000 +0000
+++ Src/Modules/terminfo.c	2010-03-10 07:58:40.000000000 +0000
@@ -50,7 +50,9 @@
 #  undef offsetof
 # endif
 
-# include <curses.h>
+# ifdef TERM_H_NEEDS_CURSES_H
+#  include <curses.h>
+# endif
 # ifdef HAVE_TERM_H
 #  include <term.h>
 # endif
