Commit 3c8f243b authored by Adam Jackson's avatar Adam Jackson 💣

Adapt to removal of xf86GetOS

Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent 9d0d12cd
...@@ -794,7 +794,6 @@ InitProtocols(void) ...@@ -794,7 +794,6 @@ InitProtocols(void)
{ {
int classes; int classes;
int i; int i;
const char *osname = NULL;
if (osInfo) if (osInfo)
return TRUE; return TRUE;
...@@ -821,11 +820,11 @@ InitProtocols(void) ...@@ -821,11 +820,11 @@ InitProtocols(void)
mouseProtocols[i].id = PROT_UNSUP; mouseProtocols[i].id = PROT_UNSUP;
/* NetBSD uses PROT_BM for "PS/2". */ /* NetBSD uses PROT_BM for "PS/2". */
xf86GetOS(&osname, NULL, NULL, NULL); #if defined(__NetBSD__)
if (osname && xf86NameCmp(osname, "netbsd") == 0) for (i = 0; mouseProtocols[i].name; i++)
for (i = 0; mouseProtocols[i].name; i++) if (mouseProtocols[i].id == PROT_PS2)
if (mouseProtocols[i].id == PROT_PS2) mouseProtocols[i].id = PROT_BM;
mouseProtocols[i].id = PROT_BM; #endif
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment