mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 01:24:06 +00:00
Adapt to removal of xf86GetOS
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
11
src/mouse.c
11
src/mouse.c
@@ -794,7 +794,6 @@ InitProtocols(void)
|
||||
{
|
||||
int classes;
|
||||
int i;
|
||||
const char *osname = NULL;
|
||||
|
||||
if (osInfo)
|
||||
return TRUE;
|
||||
@@ -821,11 +820,11 @@ InitProtocols(void)
|
||||
mouseProtocols[i].id = PROT_UNSUP;
|
||||
|
||||
/* NetBSD uses PROT_BM for "PS/2". */
|
||||
xf86GetOS(&osname, NULL, NULL, NULL);
|
||||
if (osname && xf86NameCmp(osname, "netbsd") == 0)
|
||||
for (i = 0; mouseProtocols[i].name; i++)
|
||||
if (mouseProtocols[i].id == PROT_PS2)
|
||||
mouseProtocols[i].id = PROT_BM;
|
||||
#if defined(__NetBSD__)
|
||||
for (i = 0; mouseProtocols[i].name; i++)
|
||||
if (mouseProtocols[i].id == PROT_PS2)
|
||||
mouseProtocols[i].id = PROT_BM;
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user