mirror of
https://github.com/Smithay/smithay.git
synced 2024-09-28 03:21:14 +02:00
drm: Update for NetBSD
This commit is contained in:
parent
a15d8e50c6
commit
13164854de
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue