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:
Matthieu Herrb 2023-07-05 10:49:24 +02:00
parent f2ff233c26
commit 4b2ecdf936
5 changed files with 33 additions and 4 deletions

View file

@ -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;