aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar JerziKaminsky <JerziKaminsky@users.noreply.github.com>2017-04-06 02:42:25 +0300
committerLibravatar Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>2017-04-07 03:14:16 +0300
commitaa6bd85da147291728acb0828f5c987a02a66193 (patch)
treed160212842d3e6bdf00f5fa2f958db732defefec /sway/main.c
parentMerge pull request #1151 from ascent12/master (diff)
downloadsway-aa6bd85da147291728acb0828f5c987a02a66193.tar.gz
sway-aa6bd85da147291728acb0828f5c987a02a66193.tar.zst
sway-aa6bd85da147291728acb0828f5c987a02a66193.zip
Add libcap check to CMake
- Moved ``<sys/capability.h>`` include inside `__linux__` guard, because all uses are similarly guarded. - <sys/capability.h> is part of an optional devel package, at least in fedora. CMake now explicitly checks that libcap devel files are available. - Added libcap to the list of install packages in .travis.yml, to make the dependency explicit. travis-ci installs the package by default, which is why this hasn't surfaced previously.
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index 55b71fa4..b9f8936f 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -11,8 +11,8 @@
11#include <signal.h> 11#include <signal.h>
12#include <unistd.h> 12#include <unistd.h>
13#include <getopt.h> 13#include <getopt.h>
14#include <sys/capability.h>
15#ifdef __linux__ 14#ifdef __linux__
15#include <sys/capability.h>
16#include <sys/prctl.h> 16#include <sys/prctl.h>
17#endif 17#endif
18#include "sway/extensions.h" 18#include "sway/extensions.h"