Skip to content

Commit

Permalink
Add dummy FileDesc struct for doc target
Browse files Browse the repository at this point in the history
  • Loading branch information
voidc committed Aug 1, 2021
1 parent 12fbabd commit 2a4d012
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/os/linux/process.rs
Expand Up @@ -5,9 +5,13 @@
use crate::io::Result;
use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
use crate::process;
#[cfg(not(doc))]
use crate::sys::fd::FileDesc;
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};

#[cfg(doc)]
struct FileDesc;

/// This type represents a file descriptor that refers to a process.
///
/// A `PidFd` can be obtained by setting the corresponding option on [`Command`]
Expand Down

0 comments on commit 2a4d012

Please sign in to comment.