aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-07-08 08:20:36 -0400
committerGitHub <noreply@github.com>2017-07-08 08:20:36 -0400
commit88120cfbbeaee8ee4ca49fc915eca209fa8cbb78 (patch)
tree80a3b14f5823df3d8d752fd2cd586af7331b3a4a /swaybar
parent23a1e944027265c70654d7395362641b59428062 (diff)
parent6a525b23dd791acecaece6b487a3b79c6cc5b799 (diff)
Merge pull request #1265 from johalun/master-freebsd
Adjust _XOPEN_SOURCE value for build on FreeBSD and fix pointer compa…
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/event_loop.c4
-rw-r--r--swaybar/tray/dbus.c2
-rw-r--r--swaybar/tray/icon.c2
-rw-r--r--swaybar/tray/tray.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/swaybar/event_loop.c b/swaybar/event_loop.c
index 80655d8b..b5861dda 100644
--- a/swaybar/event_loop.c
+++ b/swaybar/event_loop.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
@@ -96,7 +96,7 @@ bool remove_event(int fd) {
static int timer_item_timer_cmp(const void *_timer_item, const void *_timer) {
const struct timer_item *timer_item = _timer_item;
const timer_t *timer = _timer;
- if (timer_item->timer == timer) {
+ if (timer_item->timer == *timer) {
return 0;
} else {
return -1;
diff --git a/swaybar/tray/dbus.c b/swaybar/tray/dbus.c
index 22531aa6..2a8cefc7 100644
--- a/swaybar/tray/dbus.c
+++ b/swaybar/tray/dbus.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c
index 1c69ba72..c146bf32 100644
--- a/swaybar/tray/icon.c
+++ b/swaybar/tray/icon.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
diff --git a/swaybar/tray/tray.c b/swaybar/tray/tray.c
index 00f1a44f..7634942a 100644
--- a/swaybar/tray/tray.c
+++ b/swaybar/tray/tray.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 700
#include <unistd.h>
#include <stdlib.h>
#include <string.h>