diff options
| author | Kartik Naik <kartik@bugqore.com> | 2026-08-01 00:29:46 +0530 |
|---|---|---|
| committer | Kartik Naik <kartik@bugqore.com> | 2026-08-01 00:29:46 +0530 |
| commit | 4445467b5ce6d39478918d17fe117511935452c0 (patch) | |
| tree | 94274ddf90e2c9cf90c6f3c176e25c31439b8482 /include | |
| parent | 3c46654fb6b3082e2835d6250320fa9cdd50a077 (diff) | |
| download | portable-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.h | 5 |
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); | |||
| 75 | int getpagesize(void); | 75 | int 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 |
| 82 | int pipe2(int fildes[2], int flags); | 87 | int pipe2(int fildes[2], int flags); |
