Skip to content

Commit dd88487

Browse files
Enable STDXX_FILENO constants in test configuration
1 parent 712420d commit dd88487

File tree

1 file changed

+3
-3
lines changed
  • src/backend/linux_raw

1 file changed

+3
-3
lines changed

src/backend/linux_raw/c.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ pub(crate) const SIGSYS: c_int = linux_raw_sys::general::SIGSYS as _;
286286
))]
287287
pub(crate) const SIGEMT: c_int = linux_raw_sys::general::SIGEMT as _;
288288

289-
#[cfg(feature = "stdio")]
289+
#[cfg(any(test, feature = "stdio"))]
290290
pub(crate) const STDIN_FILENO: c_int = linux_raw_sys::general::STDIN_FILENO as _;
291-
#[cfg(feature = "stdio")]
291+
#[cfg(any(test, feature = "stdio"))]
292292
pub(crate) const STDOUT_FILENO: c_int = linux_raw_sys::general::STDOUT_FILENO as _;
293-
#[cfg(feature = "stdio")]
293+
#[cfg(any(test, feature = "stdio"))]
294294
pub(crate) const STDERR_FILENO: c_int = linux_raw_sys::general::STDERR_FILENO as _;
295295

296296
pub(crate) const PIPE_BUF: usize = linux_raw_sys::general::PIPE_BUF as _;

0 commit comments

Comments
 (0)