summaryrefslogtreecommitdiff
path: root/multimedia/fxtv/patches/patch-ba
blob: ca247639d5f159f14e586907e486fb76c87a8905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
$NetBSD: patch-ba,v 1.3 2011/07/05 03:27:22 dholland Exp $

Deal with mouse headers.
Fix illegal C.
Dragonfly support.

--- remote.c.orig	2001-02-12 21:05:08.000000000 +0000
+++ remote.c
@@ -33,6 +33,8 @@
 
 /*      ******************** Include Files                ************** */
 
+#include "netbsdconf.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -52,9 +54,13 @@
 # else
 #  include <machine/mouse.h>
 # endif
+#elif defined(__DragonFly__)
+# include <machine/mouse.h>
 #else
+#if HAVE_MOUSE_H
 # include <machine/mouse.h>
 #endif
+#endif
 #include <X11/Intrinsic.h>
 #include "tvdebug.h"
 #include "tvutil.h"
@@ -62,10 +68,12 @@
 #include "haup_remote.h"
 #include "pixelview_remote.h"
 
+#if HAVE_MOUSE_H
+
 /*      ******************** Local defines                ************** */
 
 /*  FIXME: Remove this old code someday  */
-#ifdef 0
+#if 0
 #  define OLD_DEV_SYSMOUSE_STUFF
 #endif
 
@@ -847,3 +855,18 @@ void TVREMOTEFlush( void )
     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 */