aboutsummaryrefslogtreecommitdiff
path: root/lib/libcapsicum
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-08-25 13:23:31 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-08-25 13:23:31 +0000
commit7ec1ec4fdb98d87602c8501dae9b9cbd24b7d22b (patch)
treee0c68e3e2ec5ef91266afe23d2e5423bc06489a1 /lib/libcapsicum
parentd141d1cc5f9a204a1eeb4b564e4cfa1821fe287e (diff)
Notes
Diffstat (limited to 'lib/libcapsicum')
-rw-r--r--lib/libcapsicum/capsicum_helpers.h12
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