From 6a525b23dd791acecaece6b487a3b79c6cc5b799 Mon Sep 17 00:00:00 2001 From: Johannes Lundberg Date: Sat, 8 Jul 2017 08:31:10 +0200 Subject: Adjust _XOPEN_SOURCE value for build on FreeBSD and fix pointer comparison error. --- swaybar/event_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'swaybar/event_loop.c') 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 #include #include @@ -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; -- cgit v1.2.3