summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-11-21 14:01:25 +0200
committerEli Zaretskii <eliz@gnu.org>2015-11-21 14:01:25 +0200
commit3c407d2919f972a6b03bdb3f30d14cdfa7de06fe (patch)
tree39b09ec03d59b043d1176d0b065e5fedfb828078 /src
parent3ca44a1ad414c5e5b07f35959ce21f01064476a8 (diff)
downloademacs-3c407d2919f972a6b03bdb3f30d14cdfa7de06fe.tar.gz
; * src/lread.c (Fload): Fix last change.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index bbff21d01d7..a62a42ad1a9 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1087,7 +1087,10 @@ Return t if the file exists and loads successfully. */)
/* Don't insist on adding a suffix if FILE already ends with one. */
if (suffix_p (file, ".el")
|| suffix_p (file, ".elc")
- || suffix_p (file, MODULES_SUFFIX))
+#ifdef HAVE_MODULES
+ || suffix_p (file, MODULES_SUFFIX)
+#endif
+ )
must_suffix = Qnil;
/* Don't insist on adding a suffix
if the argument includes a directory name. */