summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@stsp.name>2014-02-18 14:14:18 +0100
committerMarco Trevisan (TreviƱo) <mail@3v1n0.net>2014-02-18 14:14:18 +0100
commit06a7ec9ac56b350bcce35b138c20bad1a3ae9c6a (patch)
tree10acb3f6ada1e923c6fe25383b1d2e73a61b71f0
parent094cf9b06059ef91a93b0d007010efdb0f370baf (diff)
downloadlibwnck-sn-32bit-fix.tar.gz
TaskList: use new Startup Notification APIsn-32bit-fix
The startup-notification API was recently fixed to use pointers to 'time_t' instead of pointers to 'long' in the functions sn_startup_sequence_get_initiated_time() and sn_startup_sequence_get_last_active_time(). See http://cgit.freedesktop.org/startup-notification/commit/?id=a7e49fefde18ea8d5bada8096d32f23bcfb5a6dc This is necessary for correct operation on 32bit platforms that use 64bit time_t (e.g. OpenBSD >= 5.5, Linux x32 ABI). Unfortunately, it is unknown if or when a new startup-notification release containing this patch will be made. Until this situation clears up, downstream distributions might or might not choose to apply the above patch to startup-notification. If startup-notification is patched, or a new release containing the patch is made, then libwnck needs the attached patch to avoid corruption of stack variables on 32bit platforms if startup-notifications are enabled.
-rw-r--r--libwnck/tasklist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 4a68dde..7c80b17 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -4178,7 +4178,8 @@ sequence_timeout_callback (void *user_data)
WnckTasklist *tasklist = user_data;
GList *tmp;
GTimeVal now;
- long tv_sec, tv_usec;
+ time_t tv_sec;
+ suseconds_t tv_usec;
double elapsed;
g_get_current_time (&now);