aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar johalun <johalun0@gmail.com>2017-06-05 13:44:29 +0200
committerLibravatar johalun <johalun0@gmail.com>2017-06-06 09:45:50 +0200
commit7fef2830446e1f98a02f8d8a3bba866b7edd5bd0 (patch)
tree10c1529eb56235b303bdbca905e8b80dce47ae6d /sway/config.c
parentRevert "Drop epoll dependency" (diff)
downloadsway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.tar.gz
sway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.tar.zst
sway-7fef2830446e1f98a02f8d8a3bba866b7edd5bd0.zip
FreeBSD fixes
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index 19b1882f..85823953 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -1,5 +1,5 @@
1#define _POSIX_C_SOURCE 200809L 1#define _POSIX_C_SOURCE 200809L
2#define _XOPEN_SOURCE 500 2#define _XOPEN_SOURCE 700
3#include <stdio.h> 3#include <stdio.h>
4#include <stdbool.h> 4#include <stdbool.h>
5#include <stdlib.h> 5#include <stdlib.h>
@@ -527,7 +527,7 @@ bool load_main_config(const char *file, bool is_active) {
527 list_add(config->config_chain, path); 527 list_add(config->config_chain, path);
528 528
529 config->reading = true; 529 config->reading = true;
530 530
531 // Read security configs 531 // Read security configs
532 bool success = true; 532 bool success = true;
533 DIR *dir = opendir(SYSCONFDIR "/sway/security.d"); 533 DIR *dir = opendir(SYSCONFDIR "/sway/security.d");