]> git.eshelyaron.com Git - emacs.git/commitdiff
(_XOPEN_SOURCE): Declare (for ftello).
authorDave Love <fx@gnu.org>
Fri, 4 Feb 2000 17:45:44 +0000 (17:45 +0000)
committerDave Love <fx@gnu.org>
Fri, 4 Feb 2000 17:45:44 +0000 (17:45 +0000)
src/lread.c

index 1f24ecbf8682a29d2a3252fac2a6bff480ea357e..6b234d39c93ccd8f2fded9290faefb05a731bd94 100644 (file)
@@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include <config.h>
+#define _XOPEN_SOURCE 500      /* for Unix 98 ftello on GNU */
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -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;
     }