$NetBSD: patch-ba,v 1.1.1.1 2004/01/26 11:36:40 jmmv Exp $
--- remote.c.orig	Fri Jan 10 02:18:28 2003
+++ remote.c	Fri Jan 10 02:18:32 2003
@@ -33,6 +33,8 @@
 
 /*      ******************** Include Files                ************** */
 
+#include "netbsdconf.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -53,8 +55,10 @@
 #  include <machine/mouse.h>
 # endif
 #else
+#if HAVE_MOUSE_H
 # include <machine/mouse.h>
 #endif
+#endif
 #include <X11/Intrinsic.h>
 #include "tvdebug.h"
 #include "tvutil.h"
@@ -62,6 +66,8 @@
 #include "haup_remote.h"
 #include "pixelview_remote.h"
 
+#if HAVE_MOUSE_H
+
 /*      ******************** Local defines                ************** */
 
 /*  FIXME: Remove this old code someday  */
@@ -847,3 +853,18 @@
     case REMOTE_TYPE_PIXELVIEW :  TVPIXELVIEWREMOTEFlush(); break;
   }
 }
+
+#else /* HAVE_MOUSE_H */
+void
+TVREMOTEOpen( XtAppContext       app_ctx, 
+	char               rem_type[], 
+	TVREMOTE_CB_FUNCT *cb )
+	{
+	}
+
+void
+TVREMOTEFlush( void )
+	{
+	}
+
+#endif /* HAVE_MOUSE_H */
