aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c2
-rw-r--r--swaybar/config.c2
-rw-r--r--swaybar/ipc.c2
-rw-r--r--swaybar/main.c1
-rw-r--r--swaybar/status_line.c1
5 files changed, 7 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 7ec3e0ea..abde1cc9 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -1,9 +1,11 @@
+#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/wait.h>
+#include <signal.h>
#include <poll.h>
#include "swaybar/ipc.h"
#include "swaybar/render.h"
diff --git a/swaybar/config.c b/swaybar/config.c
index 7959b1ca..1d802022 100644
--- a/swaybar/config.c
+++ b/swaybar/config.c
@@ -1,6 +1,6 @@
+#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <string.h>
-
#include "wayland-desktop-shell-client-protocol.h"
#include "log.h"
#include "swaybar/config.h"
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index f2da7392..b08eeea8 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -1,4 +1,6 @@
+#define _XOPEN_SOURCE 500
#include <string.h>
+#include <strings.h>
#include <json-c/json.h>
#include "swaybar/config.h"
#include "swaybar/ipc.h"
diff --git a/swaybar/main.c b/swaybar/main.c
index c9a554a3..a2168743 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/swaybar/status_line.c b/swaybar/status_line.c
index c7055d4c..83e8ce2c 100644
--- a/swaybar/status_line.c
+++ b/swaybar/status_line.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <string.h>
#include <unistd.h>