fop(1), hru(1), intcmp(1), mm(1), rpn(1), swab(1): fixes conditional compilation

This commit is contained in:
2024-08-17 01:51:25 -06:00
parent e2c03842a3
commit 821f5d09e9
6 changed files with 9 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ fn main() -> ExitCode {
return ExitCode::from(EX_USAGE as u8);
}
if cfg!(target_os="openbsd") {
#[cfg(target_os="openbsd")] {
let promises = Promises::new("stdio");
if let Err(e) = pledge(Some(promises), None) {
eprintln!("{}: {}", argv[0], e.strerror());