From 5e4a772d84846654db19f3a10263fde6c6d9518d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 16 Apr 2024 23:09:54 +0900 Subject: Fix FTBFS caused by missing include. This resolves issue #19 Signed-off-by: Michele Calgaro (cherry picked from commit 311b228923a78ead3e64726d589926ff4199bff1) --- src/npplayer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/npplayer.c b/src/npplayer.c index c630622..7e4ea39 100644 --- a/src/npplayer.c +++ b/src/npplayer.c @@ -31,12 +31,14 @@ http://dbus.freedesktop.org/doc/dbus/libdbus-tutorial.html #include #include +#include #include #include #define DBUS_API_SUBJECT_TO_CHANGE #include #include +#include #define XP_UNIX #define MOZ_X11 @@ -119,6 +121,10 @@ static void print (const char * format, ...) { /*----------------%<---------------------------------------------------------*/ +static gint identifierCompare (gconstpointer a, gconstpointer b) { + return strcmp((const char*)a, (const char*)b); +} + static gint streamCompare (gconstpointer a, gconstpointer b) { return (long)a - (long)b; } @@ -1527,7 +1533,7 @@ int main (int argc, char **argv) { return 1; } - identifiers = g_tree_new (strcmp); + identifiers = g_tree_new (identifierCompare); stream_list = g_tree_new (streamCompare); g_timeout_add (0, initPlayer, NULL); -- cgit v1.2.1