diff options
author | Adam Jackson <ajax@redhat.com> | 2017-01-24 10:00:21 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-01-24 10:00:21 -0500 |
commit | 8069c6970c731c38e105f5dddd5ce83ba88b0773 (patch) | |
tree | f6a6c88da980546e218e13a9eb5b9e5f3addd9ec | |
parent | 9058c301e6d0af04b73cf0df3b3be553560f3f7c (diff) |
Replace LoaderGetOS with ifdef
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/wsfb_driver.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c index 3802bf6..9a91295 100644 --- a/src/wsfb_driver.c +++ b/src/wsfb_driver.c @@ -200,18 +200,11 @@ static pointer WsfbSetup(pointer module, pointer opts, int *errmaj, int *errmin) { static Bool setupDone = FALSE; - const char *osname; - - /* Check that we're being loaded on a OpenBSD or NetBSD system. */ - LoaderGetOS(&osname, NULL, NULL, NULL); - if (!osname || (strcmp(osname, "openbsd") != 0 && - strcmp(osname, "netbsd") != 0)) { - if (errmaj) - *errmaj = LDR_BADOS; - if (errmin) - *errmin = 0; - return NULL; - } + +#if !defined(__OpenBSD__) && !defined(__NetBSD__) + return NULL; +#endif + if (!setupDone) { setupDone = TRUE; xf86AddDriver(&WSFB, module, HaveDriverFuncs); |