aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar sghctoma <sghctoma@gmail.com>2018-08-30 09:29:05 +0200
committerLibravatar sghctoma <sghctoma@gmail.com>2018-08-30 09:34:26 +0200
commitcc16948c8598e8b9aa98506dcdad66967dc28712 (patch)
treee06909895e67689e68ea4b76e14413dd9c291d29 /sway
parentMerge pull request #2537 from ianyfan/commands (diff)
downloadsway-cc16948c8598e8b9aa98506dcdad66967dc28712.tar.gz
sway-cc16948c8598e8b9aa98506dcdad66967dc28712.tar.zst
sway-cc16948c8598e8b9aa98506dcdad66967dc28712.zip
Fix feature macros for FreeBSD
On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600.
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c2
-rw-r--r--sway/commands/bar.c2
-rw-r--r--sway/commands/output/background.c2
-rw-r--r--sway/tree/workspace.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index d9c54adc..f321a874 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1,4 +1,4 @@
1#define _XOPEN_SOURCE 500 1#define _XOPEN_SOURCE 600
2#include <ctype.h> 2#include <ctype.h>
3#include <stdarg.h> 3#include <stdarg.h>
4#include <stdlib.h> 4#include <stdlib.h>
diff --git a/sway/commands/bar.c b/sway/commands/bar.c
index f6a70c17..9d62dc83 100644
--- a/sway/commands/bar.c
+++ b/sway/commands/bar.c
@@ -1,4 +1,4 @@
1#define _XOPEN_SOURCE 500 1#define _XOPEN_SOURCE 600
2#include <string.h> 2#include <string.h>
3#include <strings.h> 3#include <strings.h>
4#include <wlr/util/log.h> 4#include <wlr/util/log.h>
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c
index 74894812..900a5e75 100644
--- a/sway/commands/output/background.c
+++ b/sway/commands/output/background.c
@@ -1,4 +1,4 @@
1#define _XOPEN_SOURCE 500 1#define _XOPEN_SOURCE 600
2#include <libgen.h> 2#include <libgen.h>
3#include <strings.h> 3#include <strings.h>
4#include <unistd.h> 4#include <unistd.h>
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index 60256336..e7c1e36b 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -1,4 +1,4 @@
1#define _XOPEN_SOURCE 500 1#define _XOPEN_SOURCE 600
2#include <ctype.h> 2#include <ctype.h>
3#include <limits.h> 3#include <limits.h>
4#include <stdbool.h> 4#include <stdbool.h>