diff src/fileio.c @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 0293115a14e9
line wrap: on
line diff
--- a/src/fileio.c	Mon Aug 13 08:45:53 2007 +0200
+++ b/src/fileio.c	Mon Aug 13 08:46:35 2007 +0200
@@ -33,6 +33,9 @@
 #include "sysdep.h"
 #include "window.h"             /* minibuf_level */
 
+#ifdef HAVE_LIBGEN_H            /* Must come before sysfile.h */
+#include <libgen.h>
+#endif
 #include "sysfile.h"
 #include "sysproc.h"
 #include "syspwd.h"
@@ -46,10 +49,6 @@
 #endif
 #endif
 
-#ifdef HAVE_LIBGEN_H
-#include <libgen.h>
-#endif
-
 /* Nonzero during writing of auto-save files */
 static int auto_saving;
 
@@ -2908,7 +2907,9 @@
 Lisp_Object Qfind_buffer_file_type;
 #endif /* DOS_NT */
 
-#define READ_BUF_SIZE (2 << 16)
+/* Stack sizes > 2**16 is a good way to elicit compiler bugs */
+/* #define READ_BUF_SIZE (2 << 16) */
+#define READ_BUF_SIZE (1 << 15)
 
 DEFUN ("insert-file-contents-internal", Finsert_file_contents_internal,
        Sinsert_file_contents_internal, 1, 5, 0 /*