summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-04-16 23:09:54 +0900
committerMichele Calgaro <[email protected]>2024-04-17 00:03:09 +0900
commit311b228923a78ead3e64726d589926ff4199bff1 (patch)
tree18833c34fb85769a1356bb65b4e671965e2d9c06
parent1566a9cec47257635726687cb2171fa83f30b28b (diff)
downloadkmplayer-311b228923a78ead3e64726d589926ff4199bff1.tar.gz
kmplayer-311b228923a78ead3e64726d589926ff4199bff1.zip
Fix FTBFS caused by missing include. This resolves issue #19
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--src/npplayer.c8
1 files changed, 7 insertions, 1 deletions
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 <fcntl.h>
#include <glib.h>
+#include <glib/gprintf.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
+#include <dbus/dbus-glib-lowlevel.h>
#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);