diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-07-04 12:50:54 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-07-04 12:50:54 +1200 |
commit | 2c27ed13934df0292df8eefea3a4cd1638785f0e (patch) | |
tree | d4f15760c77761c9a68d8dca87a142ac19ab7527 | |
parent | dd40a42a99bc3f11efa3f080f368913f17e421e6 (diff) |
include fixes
-rw-r--r-- | session/direct.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/session/direct.c b/session/direct.c index e6c2440f..0bee21d3 100644 --- a/session/direct.c +++ b/session/direct.c @@ -2,7 +2,6 @@ #include <errno.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> #include <stdbool.h> #include <string.h> #include <fcntl.h> @@ -11,7 +10,6 @@ #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/sysmacros.h> -#include <sys/capability.h> #include <sys/socket.h> #include <sys/wait.h> #include <linux/kd.h> @@ -21,6 +19,9 @@ #include <xf86drm.h> #include <wlr/session/interface.h> #include <wlr/util/log.h> +#ifdef HAS_LIBCAP +#include <sys/capability.h> +#endif #ifndef KDSKBMUTE #define KDSKBMUTE 0x4B51 |