about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2018-05-31 19:18:58 +0200
committerGuillaume Girol <symphorien+git@xlumurb.eu>2018-05-31 19:18:58 +0200
commit8dec03b71af22a160803c241b6812b8e54ee9671 (patch)
tree259906cc545006fd8da4ead1c334097a9a121ca2 /src/libstd/sys
parentcb2a0d61adb47b530f8922c9ae3c816cbbf062c5 (diff)
downloadrust-8dec03b71af22a160803c241b6812b8e54ee9671.tar.gz
rust-8dec03b71af22a160803c241b6812b8e54ee9671.zip
libstd/sys/unix/fs.rs: fix compilation on fuchsia
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs
index 007511a992b..c4d94259bd6 100644
--- a/src/libstd/sys/unix/fs.rs
+++ b/src/libstd/sys/unix/fs.rs
@@ -229,7 +229,7 @@ impl Iterator for ReadDir {
                 // is safe to use in threaded applications and it is generally preferred
                 // over the readdir_r(3C) function.
                 super::os::set_errno(0);
-                let entry_ptr = libc::readdir(self.dirp.0);
+                let entry_ptr = libc::readdir(self.0.dirp.0);
                 if entry_ptr.is_null() {
                     // NULL can mean either the end is reached or an error occurred.
                     // So we had to clear errno beforehand to check for an error now.