Skip to content

Commit

Permalink
openbsd has dirent d_namlen field now
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie committed Jan 12, 2016
1 parent a545eac commit 667ee8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/sys/unix/fs.rs
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 667ee8a

Please sign in to comment.