Add basic OpenBSD support
XXX more work needed to manage VT switches and proper XXX fbtab(4) support to allow for non-root users
This commit is contained in:
parent
f2ff233c26
commit
4b2ecdf936
5 changed files with 33 additions and 4 deletions
|
@ -21,7 +21,7 @@ int drm_drop_master(int fd) {
|
|||
return ioctl(fd, DRM_IOCTL_DROP_MASTER, 0);
|
||||
}
|
||||
|
||||
#if defined(__linux__) || defined(__NetBSD__)
|
||||
#if defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
int path_is_drm(const char *path) {
|
||||
if (STR_HAS_PREFIX("/dev/dri/", path))
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue