* lisp/gnus-compat.el (fboundp): Avoid compilation error on XEmacs.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 27 Jan 2015 06:22:12 +0000 (17:22 +1100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 27 Jan 2015 06:22:12 +0000 (17:22 +1100)
lisp/ChangeLog
lisp/gnus-compat.el

index 58c883e..bc8f44b 100644 (file)
@@ -1,5 +1,7 @@
 2015-01-27  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-compat.el (fboundp): Avoid compilation error on XEmacs.
+
        * nnir.el (nnir-imap-expr-to-imap): Check for literal+ capability in
        IMAP.
 
index 3eac265..86bcb8f 100644 (file)
@@ -144,6 +144,11 @@ one is kept."
 (unless (fboundp 'declare-function)
   (defmacro declare-function (&rest r)))
 
+(unless (fboundp 'string-bytes)
+  (defun string-bytes (string)
+    ;; This is a rather wrong definition that should be fixed.
+    (length string)))
+
 (provide 'gnus-compat)
 
 ;; gnus-compat.el ends here