The Windows native build fails without the below patch. Is it OK to
apply it? Win native, cygwin and my linux builds all seem to work.
Basically, using config.h.in in the Windows build process means that
the #undef needs to be separated from the definition.
Also, it seemed to me that in the old version since
#undef AC_FUNC_FSEEKO
#ifdef AC_FUNC_FSEEKO
were right next to each other, OFF_T was always defined as long, but I
was probably missing something.
- Vin
diff -r f7abcda06b1b src/ChangeLog
--- a/src/ChangeLog Fri Mar 08 13:43:06 2013 -0700
+++ b/src/ChangeLog Mon Mar 11 22:54:43 2013 -0400
@@ -1,3 +1,7 @@
+2013-03-11 Vin Shelton <acs(a)xemacs.org>
+
+ * config.h.in: Move large file support outside WIN32_NO_CONFIGURE block.
+
2013-03-07 Jerry James <james(a)xemacs.org>
* array.c (stack_like_malloc): Define only if WIN32_ANY.
diff -r f7abcda06b1b src/config.h.in
--- a/src/config.h.in Fri Mar 08 13:43:06 2013 -0700
+++ b/src/config.h.in Mon Mar 11 22:54:43 2013 -0400
@@ -761,15 +761,6 @@
/* Large file support */
#undef AC_FUNC_FSEEKO
-#ifdef AC_FUNC_FSEEKO
-# define OFF_T off_t
-# define FSEEK(stream, offset, whence) fseeko (stream, offset, whence)
-# define FTELL(stream) ftello (stream)
-#else
-# define OFF_T long
-# define FSEEK(stream, offset, whence) fseek (stream, offset, whence)
-# define FTELL(stream) ftell (stream)
-#endif
/* some systems (Cygwin) typedef u?intptr_t in <sys/types.h>
but the standard is <inttypes.h>
@@ -1187,4 +1178,15 @@
#define SUPPORT_CONFOUNDING_FUNCTIONS NEED_TO_HANDLE_21_4_CODE
+/* Large file support */
+#ifdef AC_FUNC_FSEEKO
+# define OFF_T off_t
+# define FSEEK(stream, offset, whence) fseeko (stream, offset, whence)
+# define FTELL(stream) ftello (stream)
+#else
+# define OFF_T long
+# define FSEEK(stream, offset, whence) fseek (stream, offset, whence)
+# define FTELL(stream) ftell (stream)
+#endif
+
#endif /* _SRC_CONFIG_H_ */
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches