mirror of
https://github.com/X11Libre/xf86-video-wsfb.git
synced 2026-03-24 01:25:29 +00:00
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
* Michel Dänzer, <michdaen@iiic.ethz.ch>
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <dev/wscons/wsconsio.h>
|
||||
@@ -200,9 +201,10 @@ 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 system */
|
||||
/* Check that we're being loaded on a OpenBSD or NetBSD system */
|
||||
LoaderGetOS(&osname, NULL, NULL, NULL);
|
||||
if (!osname || strcmp(osname, "openbsd") != 0) {
|
||||
if (!osname || (strcmp(osname, "openbsd") != 0 &&
|
||||
strcmp(osname, "netbsd") != 0)) {
|
||||
if (errmaj)
|
||||
*errmaj = LDR_BADOS;
|
||||
if (errmin)
|
||||
|
||||
Reference in New Issue
Block a user