From 0705e5346a84834285ebee4b4739009ed8ac06bc Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Tue, 12 May 2020 15:58:43 +0200
Subject: [PATCH] Compiles with gcc

---
 inc/lektor/net.h | 2 +-
 src/net/listen.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/inc/lektor/net.h b/inc/lektor/net.h
index dc1e569e..e7d244bb 100644
--- a/inc/lektor/net.h
+++ b/inc/lektor/net.h
@@ -95,7 +95,7 @@ void lkt_set_continuation(struct lkt_state *srv, size_t c, int i);
 
 /* Get the mask to watch for events for a given client, to be used with the `idle` command.
  * Return a pointer to the client's mask */
-mpd_idle_flag lkt_client_get_mask(struct lkt_state *srv, size_t c);
+int lkt_client_get_mask(struct lkt_state *srv, size_t c);
 void lkt_client_add_mask(struct lkt_state *srv, size_t c, mpd_idle_flag add);
 void lkt_client_clear_mask(struct lkt_state *srv, size_t c);
 
diff --git a/src/net/listen.c b/src/net/listen.c
index 4bec3bf2..37d1cbe3 100644
--- a/src/net/listen.c
+++ b/src/net/listen.c
@@ -683,13 +683,13 @@ handle_idle_events(struct lkt_state *srv)
     return 0;
 }
 
-inline mpd_idle_flag
+int
 lkt_client_get_mask(struct lkt_state *srv, size_t c)
 {
     return srv->clients[c - 1].mpd_idle_watch;
 }
 
-inline void
+void
 lkt_client_add_mask(struct lkt_state *srv, size_t c, mpd_idle_flag add)
 {
     if (pthread_mutex_lock(&srv->lock))
@@ -698,7 +698,7 @@ lkt_client_add_mask(struct lkt_state *srv, size_t c, mpd_idle_flag add)
     pthread_mutex_unlock(&srv->lock);
 }
 
-inline void
+void
 lkt_client_clear_mask(struct lkt_state *srv, size_t c)
 {
     if (pthread_mutex_lock(&srv->lock))
-- 
GitLab