diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-25 13:23:31 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-25 13:23:31 +0000 |
| commit | 7ec1ec4fdb98d87602c8501dae9b9cbd24b7d22b (patch) | |
| tree | e0c68e3e2ec5ef91266afe23d2e5423bc06489a1 /lib/libcapsicum | |
| parent | d141d1cc5f9a204a1eeb4b564e4cfa1821fe287e (diff) | |
Notes
Diffstat (limited to 'lib/libcapsicum')
| -rw-r--r-- | lib/libcapsicum/capsicum_helpers.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libcapsicum/capsicum_helpers.h b/lib/libcapsicum/capsicum_helpers.h index 99ece1abfbcdd..6a467e308e84c 100644 --- a/lib/libcapsicum/capsicum_helpers.h +++ b/lib/libcapsicum/capsicum_helpers.h @@ -49,7 +49,17 @@ __BEGIN_DECLS static const unsigned long caph_stream_cmds[] = - { TIOCGETA, TIOCGWINSZ, FIODTYPE }; + { +#ifdef TIOCGETA + TIOCGETA, +#endif +#ifdef TIOCGWINSZ + TIOCGWINSZ, +#endif +#ifdef FIODTYPE + FIODTYPE, +#endif + }; static const uint32_t caph_stream_fcntls = CAP_FCNTL_GETFL; static __inline void |
