openbsd has dirent d_namlen field now
This commit is contained in:
parent
a545eac593
commit
667ee8a57b
1 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,8 @@ impl DirEntry {
|
|||
|
||||
#[cfg(any(target_os = "macos",
|
||||
target_os = "ios",
|
||||
target_os = "netbsd"))]
|
||||
target_os = "netbsd",
|
||||
target_os = "openbsd"))]
|
||||
fn name_bytes(&self) -> &[u8] {
|
||||
unsafe {
|
||||
::slice::from_raw_parts(self.entry.d_name.as_ptr() as *const u8,
|
||||
|
@ -213,8 +214,7 @@ impl DirEntry {
|
|||
}
|
||||
#[cfg(any(target_os = "freebsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "bitrig",
|
||||
target_os = "openbsd"))]
|
||||
target_os = "bitrig"))]
|
||||
fn name_bytes(&self) -> &[u8] {
|
||||
unsafe {
|
||||
::slice::from_raw_parts(self.entry.d_name.as_ptr() as *const u8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue