summaryrefslogtreecommitdiff
path: root/x11-servers/XFree86-4-Server-snap/files/patch-xf86config.c
blob: bb986f1b782ab282b45f5e6729d16506aad889cd (plain) (blame)
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
--- programs/Xserver/hw/xfree86/xf86config/xf86config.c.orig	Sat Oct 27 20:34:09 2001
+++ programs/Xserver/hw/xfree86/xf86config/xf86config.c	Sat Jun  8 11:35:18 2002
@@ -382,7 +382,7 @@
 
 static char *mousetype_name[] = {
 	"Microsoft compatible (2-button protocol)",
-	"Mouse Systems (3-button protocol)",
+	"Mouse Systems (3-button protocol) & FreeBSD moused protocol",
 	"Bus Mouse",
 	"PS/2 Mouse",
 	"Logitech Mouse (serial, old type, Logitech protocol)",
@@ -401,6 +401,9 @@
 #ifdef WSCONS_SUPPORT
 "On systems with wscons, the default is /dev/wsmouse.\n"
 #endif
+#ifdef __FreeBSD__
+"On FreeBSD, the default is /dev/sysmouse.\n"
+#endif
 "\n";
 
 static char *mousecomment_text =
@@ -544,10 +547,12 @@
 	printf("Mouse device: ");
 	getstring(s);
 	if (strlen(s) == 0)
-#ifndef WSCONS_SUPPORT
-		config_pointerdevice = "/dev/mouse";
-#else
+#ifdef WSCONS_SUPPORT
 		config_pointerdevice = "/dev/wsmouse";
+#elif defined(__FreeBSD__)
+		config_pointerdevice = "/dev/sysmouse";
+#else
+		config_pointerdevice = "/dev/mouse";
 #endif
 	else {
 		config_pointerdevice = Malloc(strlen(s) + 1);