drm: Update for NetBSD

This commit is contained in:
Ian Douglas Scott 2024-09-06 05:00:09 +00:00 committed by Victoria Brekenfeld
parent a15d8e50c6
commit 13164854de
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@
pub const DRM_MAJOR: u32 = 145;
#[cfg(target_os = "netbsd")]
pub const DRM_MAJOR: u32 = 34;
pub const DRM_MAJOR: u32 = 180;
#[cfg(all(target_os = "openbsd", target_arch = "x86"))]
pub const DRM_MAJOR: u32 = 88;

View file

@ -340,7 +340,7 @@ fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
))
}
#[cfg(target_os = "openbsd")]
#[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
use std::io::ErrorKind;
@ -380,7 +380,7 @@ fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
))
}
#[cfg(any(target_os = "freebsd", target_os = "openbsd"))]
#[cfg(any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]
fn get_minor_base(type_: NodeType) -> u32 {
match type_ {
NodeType::Primary => 0,