Compare commits

..

No commits in common. "e2c03842a30a8a338131e7952cf5287d6588a640" and "e0c985f7ff7bb9cdd86e5925a6dc058d040b065e" have entirely different histories.

5 changed files with 5 additions and 6 deletions

View File

@ -19,7 +19,7 @@ PREFIX ?= /usr/local
# for conditionally compiling OS features
OS != uname
OS_INCLUDE != test -e include/$(OS).mk && printf 'include/$(OS).mk\n' \
|| printf '/dev/null\n'
|| include/None.mk
# normalized prefix
PREFIX_N != dirname $(PREFIX)/.

0
include/None.mk Normal file
View File

View File

@ -1,6 +1,5 @@
/*
* Copyright (c) 20232024 Emma Tebibyte <emma@tebibyte.media>
* Copyright (c) 2024 DTB <trinity@trinity.moe>
* SPDX-License-Identifier: CC0
*
* This work is marked with CC0 1.0. To view a copy of this license, visit
@ -11,9 +10,9 @@
# include <unistd.h> /* pledge(2) */
#endif
int main(void) {
int main() {
#ifdef __OpenBSD__
pledge(NULL, NULL);
#endif
return 1;
return 1;
}

View File

@ -34,6 +34,7 @@ use sysexits::EX_USAGE;
#[cfg(target_os="openbsd")] use openbsd::{ Promises, pledge };
#[cfg(target_os="openbsd")] use strerror::StrError;
fn usage(s: &str) -> ExitCode {
eprintln!("Usage: {} [-egl] integer integer...", s);
ExitCode::from(EX_USAGE as u8)

View File

@ -1,6 +1,5 @@
/*
* Copyright (c) 20232024 Emma Tebibyte <emma@tebibyte.media>
* Copyright (c) 2024 DTB <trinity@trinity.moe>
* SPDX-License-Identifier: CC0
*
* This work is marked with CC0 1.0. To view a copy of this license, visit
@ -11,7 +10,7 @@
# include <unistd.h> /* pledge(2) */
#endif
int main(void) {
int main() {
#ifdef __OpenBSD__
pledge(NULL, NULL);
#endif