diff --git a/src/false.c b/src/false.c index 3b6ec2a..1617b03 100644 --- a/src/false.c +++ b/src/false.c @@ -1,9 +1,18 @@ /* - * Copyright (c) 2023 Emma Tebibyte + * Copyright (c) 2023–2024 Emma Tebibyte * SPDX-License-Identifier: CC0 * * This work is marked with CC0 1.0. To view a copy of this license, visit * . */ -int main() { return 1; } +#ifdef __OpenBSD__ +# include /* pledge(2) */ +#endif + +int main() { +#ifdef __OpenBSD__ + pledge(NULL, NULL); +#endif +return 1; +} diff --git a/src/true.c b/src/true.c index ab8da96..eb16efd 100644 --- a/src/true.c +++ b/src/true.c @@ -1,9 +1,17 @@ /* - * Copyright (c) 2023 Emma Tebibyte + * Copyright (c) 2023–2024 Emma Tebibyte * SPDX-License-Identifier: CC0 * * This work is marked with CC0 1.0. To view a copy of this license, visit * . */ -int main() {} +#ifdef __OpenBSD__ +# include /* pledge(2) */ +#endif + +int main() { +#ifdef __OpenBSD__ + pledge(NULL, NULL); +#endif +}