summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-02-04 17:45:44 +0000
committerDave Love <fx@gnu.org>2000-02-04 17:45:44 +0000
commit9b7c9ebd68811438273b48faa1bda5778a7172eb (patch)
tree8a62be4b68a49f52c3e5153a179cab4d3fdc5bae /src/lread.c
parentbe95a9b6662c3a3c3f148b06c76afde3c02682bc (diff)
downloademacs-9b7c9ebd68811438273b48faa1bda5778a7172eb.tar.gz
(_XOPEN_SOURCE): Declare (for ftello).
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c5
1 files changed, 3 insertions, 2 deletions
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 <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;
}