Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / multimedia / fxtv / patches / patch-ba
blob37099af096c7a2146a5dc6fa0613c8511c2dfcb5
1 $NetBSD: patch-ba,v 1.3 2011/07/05 03:27:22 dholland Exp $
3 Deal with mouse headers.
4 Fix illegal C.
5 Dragonfly support.
7 --- remote.c.orig       2001-02-12 21:05:08.000000000 +0000
8 +++ remote.c
9 @@ -33,6 +33,8 @@
11  /*      ******************** Include Files                ************** */
13 +#include "netbsdconf.h"
15  #include <stdio.h>
16  #include <stdlib.h>
17  #include <errno.h>
18 @@ -52,9 +54,13 @@
19  # else
20  #  include <machine/mouse.h>
21  # endif
22 +#elif defined(__DragonFly__)
23 +# include <sys/mouse.h>
24  #else
25 +#if HAVE_MOUSE_H
26  # include <machine/mouse.h>
27  #endif
28 +#endif
29  #include <X11/Intrinsic.h>
30  #include "tvdebug.h"
31  #include "tvutil.h"
32 @@ -62,10 +68,12 @@
33  #include "haup_remote.h"
34  #include "pixelview_remote.h"
36 +#if HAVE_MOUSE_H
38  /*      ******************** Local defines                ************** */
40  /*  FIXME: Remove this old code someday  */
41 -#ifdef 0
42 +#if 0
43  #  define OLD_DEV_SYSMOUSE_STUFF
44  #endif
46 @@ -847,3 +855,18 @@ void TVREMOTEFlush( void )
47      case REMOTE_TYPE_PIXELVIEW :  TVPIXELVIEWREMOTEFlush(); break;
48    }
49  }
51 +#else /* HAVE_MOUSE_H */
52 +void
53 +TVREMOTEOpen( XtAppContext       app_ctx, 
54 +       char               rem_type[], 
55 +       TVREMOTE_CB_FUNCT *cb )
56 +       {
57 +       }
59 +void
60 +TVREMOTEFlush( void )
61 +       {
62 +       }
64 +#endif /* HAVE_MOUSE_H */