-check_func "setresuid" "$src" || {
- printf 'OPENBSD += setresuid.o\n' >>$CONFIG_MK
-}
-
-#
-# Check for pledge().
-#
-src='
-#include <unistd.h>
-int main(void) {
- pledge("", NULL);
- return 0;
-}'
-check_func "pledge" "$src" || {
- printf 'OPENBSD += pledge-noop.o\n' >>$CONFIG_MK
-}