From cc16948c8598e8b9aa98506dcdad66967dc28712 Mon Sep 17 00:00:00 2001 From: sghctoma Date: Thu, 30 Aug 2018 09:29:05 +0200 Subject: [PATCH] Fix feature macros for FreeBSD On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600. --- client/pool-buffer.c | 2 +- sway/commands.c | 2 +- sway/commands/bar.c | 2 +- sway/commands/output/background.c | 2 +- sway/tree/workspace.c | 2 +- swaybar/ipc.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/pool-buffer.c b/client/pool-buffer.c index fa468c0d..6555a3ae 100644 --- a/client/pool-buffer.c +++ b/client/pool-buffer.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include #include #include 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 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include #include #include 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 #include #include 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 #include #include 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 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include #include #include diff --git a/swaybar/ipc.c b/swaybar/ipc.c index c2d05920..972869c6 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include #include #include