From: Dave Love Date: Fri, 4 Feb 2000 17:45:44 +0000 (+0000) Subject: (_XOPEN_SOURCE): Declare (for ftello). X-Git-Tag: emacs-pretest-21.0.90~5094 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b7c9ebd68811438273b48faa1bda5778a7172eb;p=emacs.git (_XOPEN_SOURCE): Declare (for ftello). --- diff --git a/src/lread.c b/src/lread.c index 1f24ecbf868..6b234d39c93 100644 --- a/src/lread.c +++ b/src/lread.c @@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA. */ #include +#define _XOPEN_SOURCE 500 /* for Unix 98 ftello on GNU */ #include #include #include @@ -608,8 +609,8 @@ Return t if file exists.") fd = openp (Vload_path, file, (!NILP (nosuffix) ? "" - : ! NILP (must_suffix) ? ".elc:.el" - : ".elc:.el:"), + : ! NILP (must_suffix) ? ".elc.gz:.elc:.el.gz:.el" + : ".elc:.elc.gz:.el.gz:.el:"), &found, 0); UNGCPRO; }