audio/ario: fix build with llvm 22

Switch a variable from long to time_t, so it has the correct type to pass
to ctime(3). Since the time is obtained through a few abstraction layers
using long, this would require too much patching to become 2038 clean.
This commit is contained in:
tb
2026-06-05 09:01:33 +00:00
parent fc43fc8a39
commit 1c3e409ca4
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
COMMENT = GTK3 MPD client inspired by Rhythmbox
DISTNAME = ario-1.6
CATEGORIES = audio x11
REVISION = 4
REVISION = 5
SHARED_LIBS += filesystem 1.0 # 0.0
SHARED_LIBS += information 1.0 # 0.0
@@ -0,0 +1,15 @@
Use time_t to pass to ctime(). This isn't 2038 clean, but fixing that
would be too much patching.
Index: src/preferences/ario-server-preferences.c
--- src/preferences/ario-server-preferences.c.orig
+++ src/preferences/ario-server-preferences.c
@@ -169,7 +169,7 @@ ario_server_preferences_sync_server (ArioServerPrefere
int crossfadetime;
int state;
gboolean updating;
- long last_update;
+ time_t last_update;
gchar *last_update_char;
GtkTreeIter iter;
GSList *tmp;