diff options
author | bors <bors@rust-lang.org> | 2022-01-26 22:33:02 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-01-26 22:33:02 +0000 |
commit | 3063aa1b45ea81b623af19b3eb9ba9c43619b23c (patch) | |
tree | bf1e38dba882bb95611f5a2b2d88a1cce6f5871d | |
parent | a79788fe689ac93118afaf7cdd2308196d2af04c (diff) | |
parent | af308591bdb98682a345d78da4163773eb6dbd01 (diff) | |
download | rust-libc-3063aa1b45ea81b623af19b3eb9ba9c43619b23c.tar.gz |
Auto merge of #2654 - anp:fuchsia-dt-unknown, r=Amanieu
Define DT_UNKNOWN on Fuchsia.
It looks like this constant is relied on in the new `remove_dir_all` logic and we need to reference it to be able to use the CVE fix correctly on Fuchsia.
-rw-r--r-- | src/fuchsia/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 7b94f64110..99b7791b0a 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -1313,6 +1313,7 @@ pub const SIG_DFL: sighandler_t = 0 as sighandler_t; pub const SIG_IGN: sighandler_t = 1 as sighandler_t; pub const SIG_ERR: sighandler_t = !0 as sighandler_t; +pub const DT_UNKNOWN: u8 = 0; pub const DT_FIFO: u8 = 1; pub const DT_CHR: u8 = 2; pub const DT_DIR: u8 = 4; |