Index: transmission-1.34-2maemo4/third-party/libevent/epoll.c
===================================================================
--- transmission-1.34-2maemo4.orig/third-party/libevent/epoll.c	2008-11-28 14:05:05.000000000 +0000
+++ transmission-1.34-2maemo4/third-party/libevent/epoll.c	2009-01-31 10:00:24.000000000 +0000
@@ -102,7 +102,7 @@
  * largest number of msec we can support here is 2147482.  Let's
  * round that down by 47 seconds.
  */
-#define MAX_EPOLL_TIMEOUT_MSEC (35*60*1000)
+#define MAX_EPOLL_TIMEOUT_MSEC (15*60*1000)
 
 static void *
 epoll_init(struct event_base *base)
Index: transmission-1.34-2maemo4/third-party/libevent/event-config.h
===================================================================
--- transmission-1.34-2maemo4.orig/third-party/libevent/event-config.h	2008-11-28 14:05:05.000000000 +0000
+++ transmission-1.34-2maemo4/third-party/libevent/event-config.h	2009-01-31 10:00:39.000000000 +0000
@@ -222,7 +222,7 @@
 #define _EVENT_SIZEOF_INT 4
 
 /* The size of `long', as computed by sizeof. */
-#define _EVENT_SIZEOF_LONG 8
+#define _EVENT_SIZEOF_LONG 4
 
 /* The size of `long long', as computed by sizeof. */
 #define _EVENT_SIZEOF_LONG_LONG 8
