From: Gwenole B. <gb...@di...> - 2001-12-27 13:18:08
|
Hi, Following feature request #496122, here is a patch: <http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D496122&group_= id=3D2123&atid=3D352123> OK to commit? Tested on IA-32 with a 3 GB hard disk file. Note: I unconditionnaly define _USE_LARGEFILE_SUPPORT and _FILE_OFFSET_BITS whatever the underlying OS is. This is a glibc specificity, I believe. For gcc3/Fortran, some people defined _XOPEN_SOURCE to 500 instead of _USE_LARGEFILE_SOURCE. So is _XOPEN_SOURCE_EXTENDED for Irix 6.2 because struct timeval would not be declared otherwise. --- BasiliskII/src/Unix/configure.in.LFS=09Sun Sep 2 15:50:05 2001 +++ BasiliskII/src/Unix/configure.in=09Thu Dec 27 14:06:24 2001 @@ -5,6 +5,10 @@ AC_PREREQ(2.12) AC_CONFIG_HEADER(config.h) +dnl These defines are necessary to get 64-bit file size support. +AC_DEFINE(_USE_LARGEFILE_SOURCE, 1, [Get more functions for correct standard I/O]) +AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support]) + dnl Options. AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=3Dyes]], [WANT_XF86_DGA=3D$enableval], [WANT_XF86_DGA=3Dyes]) AC_ARG_ENABLE(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=3Dyes]], [WANT_XF86_VIDMODE=3D$enableval], [WANT_XF86_VIDMODE=3Dyes]) Bye, Gwenol=E9. |