about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2015-12-23 18:56:42 +0100
committerSébastien Marie <semarie@users.noreply.github.com>2016-01-12 08:43:53 +0100
commit667ee8a57b86f5f3e12ff9bd780d6f16dc4129d8 (patch)
tree284f33e17a8daf60ee19aeb87c1eb804856bb6ab /src/libstd/sys
parenta545eac593b0ff3a6ad6c2d8390de51c30712089 (diff)
downloadrust-667ee8a57b86f5f3e12ff9bd780d6f16dc4129d8.tar.gz
rust-667ee8a57b86f5f3e12ff9bd780d6f16dc4129d8.zip
openbsd has dirent d_namlen field now
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/fs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs
index e8575a6c21c..10fda3fcd7f 100644
--- a/src/libstd/sys/unix/fs.rs
+++ b/src/libstd/sys/unix/fs.rs
@@ -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,