From 4445467b5ce6d39478918d17fe117511935452c0 Mon Sep 17 00:00:00 2001 From: Kartik Naik Date: Sat, 1 Aug 2026 00:29:46 +0530 Subject: don't override pledge and unveil when the host provides them --- include/compat/unistd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 544cb27..0ce66dd 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h @@ -75,8 +75,13 @@ int getentropy(void *buf, size_t buflen); int getpagesize(void); #endif +#ifndef HAVE_PLEDGE #define pledge(request, paths) 0 +#endif + +#ifndef HAVE_UNVEIL #define unveil(path, permissions) 0 +#endif #ifndef HAVE_PIPE2 int pipe2(int fildes[2], int flags); -- cgit v1.2.3-55-g6feb