Update pledge() interface to match current OpenBSD.

ok djm@
This commit is contained in:
Darren Tucker committed 2025-09-25 18:24:02 +10:00
1 parent 7ce3823547
commit 35f3e2a41c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -403,7 +403,7 @@ getpgid(pid_t pid)
#ifndef HAVE_PLEDGE
int
pledge(const char *promises, const char *paths[])
pledge(const char *promises, const char *execpromises)
{
return 0;
}
+1 -1
View File
@@ -156,7 +156,7 @@ int pselect(int, fd_set *, fd_set *, fd_set *, const struct timespec *,
#endif
#ifndef HAVE_PLEDGE
int pledge(const char *promises, const char *paths[]);
int pledge(const char *promises, const char *execpromises);
#endif
/* bsd-err.h */