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

@@ -42,7 +42,7 @@ fn usage(s: &str) -> ExitCode {
fn main() -> ExitCode {
let argv = args().collect::<Vec<String>>();
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());