From 2b1e1ff4fa06c07526f36096c56dd119380a9a5f Mon Sep 17 00:00:00 2001
From: Glenn Morris <rgm@gnu.org>
Date: Sun, 31 Oct 2010 19:07:01 -0700
Subject: [PATCH] Silence nnimap.el compilation. * lisp/gnus/nnimap.el: Require
 nnmail, and gnus-sum when compiling. (nnimap-keepalive): Use gnus-float-time.

---
 lisp/gnus/ChangeLog | 3 +++
 lisp/gnus/nnimap.el | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index c3b747bc589..af52b316ea9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,8 @@
 2010-11-01  Glenn Morris  <rgm@gnu.org>
 
+	* nnimap.el: Require nnmail, and gnus-sum when compiling.
+	(nnimap-keepalive): Use gnus-float-time.
+
 	* mail-source.el (nnheader-message, gnus-float-time): Autoload.
 	(mail-source-delete-crash-box): Use gnus-float-time.
 
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 3940e643532..4d0d4b840f4 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -44,6 +44,10 @@
 (require 'utf7)
 (require 'tls)
 (require 'parse-time)
+(require 'nnmail)
+
+(eval-when-compile
+  (require 'gnus-sum))
 
 (autoload 'auth-source-forget-user-or-password "auth-source")
 (autoload 'auth-source-user-or-password "auth-source")
@@ -287,7 +291,7 @@ textual parts.")
 	(with-current-buffer buffer
 	  (when (and nnimap-object
 		     (nnimap-last-command-time nnimap-object)
-		     (> (time-to-seconds
+		     (> (gnus-float-time
 			 (time-subtract
 			  now
 			  (nnimap-last-command-time nnimap-object)))
-- 
2.39.5