Ver código fonte

Use rlim_t instead of u64 which breaks build on some OS's (#9194)

Kristofer Peterson 7 horas atrás
pai
commit
da03d1be01
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      core/src/resource_limits.rs

+ 3 - 2
core/src/resource_limits.rs

@@ -2,13 +2,14 @@ use {std::io, thiserror::Error};
 
 #[derive(Error, Debug)]
 pub enum ResourceLimitError {
+    #[cfg(unix)]
     #[error(
         "unable to increase the nofile limit to {desired} from {current}; setrlimit() error: \
          {error}"
     )]
     Nofile {
-        desired: u64,
-        current: u64,
+        desired: libc::rlim_t,
+        current: libc::rlim_t,
         error: libc::c_int,
     },
 }