mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
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:
+1
-1
@@ -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;
|
||||
Reference in New Issue
Block a user