aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorsghctoma <sghctoma@gmail.com>2018-08-30 09:29:05 +0200
committersghctoma <sghctoma@gmail.com>2018-08-30 09:34:26 +0200
commitcc16948c8598e8b9aa98506dcdad66967dc28712 (patch)
treee06909895e67689e68ea4b76e14413dd9c291d29 /sway/commands
parentde9e80459a93598bdaf6a68485215ce597131d88 (diff)
downloadsway-cc16948c8598e8b9aa98506dcdad66967dc28712.tar.xz
Fix feature macros for FreeBSD
On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/bar.c2
-rw-r--r--sway/commands/output/background.c2
2 files changed, 2 insertions, 2 deletions
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 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
#include <string.h>
#include <strings.h>
#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 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
#include <libgen.h>
#include <strings.h>
#include <unistd.h>