aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKartik Naik <kartik@bugqore.com>2026-08-01 00:29:46 +0530
committerKartik Naik <kartik@bugqore.com>2026-08-01 00:29:46 +0530
commit4445467b5ce6d39478918d17fe117511935452c0 (patch)
tree94274ddf90e2c9cf90c6f3c176e25c31439b8482 /include
parent3c46654fb6b3082e2835d6250320fa9cdd50a077 (diff)
downloadportable-4445467b5ce6d39478918d17fe117511935452c0.tar.gz
portable-4445467b5ce6d39478918d17fe117511935452c0.tar.bz2
portable-4445467b5ce6d39478918d17fe117511935452c0.zip
don't override pledge and unveil when the host provides them
Diffstat (limited to 'include')
-rw-r--r--include/compat/unistd.h5
1 files changed, 5 insertions, 0 deletions
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);
75int getpagesize(void); 75int getpagesize(void);
76#endif 76#endif
77 77
78#ifndef HAVE_PLEDGE
78#define pledge(request, paths) 0 79#define pledge(request, paths) 0
80#endif
81
82#ifndef HAVE_UNVEIL
79#define unveil(path, permissions) 0 83#define unveil(path, permissions) 0
84#endif
80 85
81#ifndef HAVE_PIPE2 86#ifndef HAVE_PIPE2
82int pipe2(int fildes[2], int flags); 87int pipe2(int fildes[2], int flags);