about summary refs log tree commit diff
path: root/library/std/src/sys/unix/time.rs
diff options
context:
space:
mode:
authorivmarkov <ivan.markov@gmail.com>2021-07-29 20:18:22 +0300
committerivmarkov <imarkov@vmware.com>2021-08-10 12:09:00 +0300
commit459eaa6baea4127b37769d0b7944fa00c175e770 (patch)
tree100c65b39f217096a01f3c0f256a672bfeaacd42 /library/std/src/sys/unix/time.rs
parentae90dcf0207c57c3034f00b07048d63f8b2363c8 (diff)
downloadrust-459eaa6baea4127b37769d0b7944fa00c175e770.tar.gz
rust-459eaa6baea4127b37769d0b7944fa00c175e770.zip
STD support for the ESP-IDF framework
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
-rw-r--r--library/std/src/sys/unix/time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs
index 23a5c81c005..7dc09add27f 100644
--- a/library/std/src/sys/unix/time.rs
+++ b/library/std/src/sys/unix/time.rs
@@ -361,9 +361,9 @@ mod inner {
         }
     }
 
-    #[cfg(not(target_os = "dragonfly"))]
+    #[cfg(not(any(target_os = "dragonfly", target_os = "espidf")))]
     pub type clock_t = libc::c_int;
-    #[cfg(target_os = "dragonfly")]
+    #[cfg(any(target_os = "dragonfly", target_os = "espidf"))]
     pub type clock_t = libc::c_ulong;
 
     fn now(clock: clock_t) -> Timespec {