File mouseemu.bustype_virtual.patch of Package mouseemu

#! /bin/sh /usr/share/dpatch/dpatch-run
## bustype_virtual.dpatch by Colin Watson <cjwatson@ubuntu.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
---
 mouseemu.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

--- a/mouseemu.c
+++ b/mouseemu.c
@@ -30,6 +30,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <linux/input.h>
+#ifndef BUS_VIRTUAL /* new in Linux 2.6.19 */
+#define BUS_VIRTUAL 0x06
+#endif
 #include <linux/uinput.h>
 #include "mouseemu.h"
 #include "defkeys.h"
@@ -433,7 +436,7 @@ int uinput_setup(void)
 	
 	strcpy(device.name, "Mouseemu virtual keyboard");
 
-	device.id.bustype = 0;
+	device.id.bustype = BUS_VIRTUAL;
 	device.id.vendor = 0x1F;
 	device.id.product = 0x1F;
 	device.id.version = 0;
@@ -475,7 +478,7 @@ int uinput_setup(void)
 
         strcpy(device.name, "Mouseemu virtual mouse");
 
-        device.id.bustype = 0;
+        device.id.bustype = BUS_VIRTUAL;
         device.id.vendor = 0x1F;
         device.id.product = 0x1E;
         device.id.version = 0;