fbdevhw: Remove pointless OS check, this never gets built on non-Linux
This commit is contained in:
parent
892c93553a
commit
087745b809
|
@ -59,20 +59,7 @@ _X_EXPORT XF86ModuleData fbdevhwModuleData = {
|
||||||
static pointer
|
static pointer
|
||||||
fbdevhwSetup(pointer module, pointer opts, int *errmaj, int *errmin)
|
fbdevhwSetup(pointer module, pointer opts, int *errmaj, int *errmin)
|
||||||
{
|
{
|
||||||
const char *osname;
|
return (pointer)1;
|
||||||
|
|
||||||
/* Check that we're being loaded on a Linux system */
|
|
||||||
LoaderGetOS(&osname, NULL, NULL, NULL);
|
|
||||||
if (!osname || strcmp(osname, "linux") != 0) {
|
|
||||||
if (errmaj)
|
|
||||||
*errmaj = LDR_BADOS;
|
|
||||||
if (errmin)
|
|
||||||
*errmin = 0;
|
|
||||||
return NULL;
|
|
||||||
} else {
|
|
||||||
/* OK */
|
|
||||||
return (pointer)1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user