Large files support on FreeBSD
Johan van Selst
johans at stack.nl
Sun Mar 22 19:18:52 UTC 2009
Russ Allbery wrote:
> The inside of the if should now say:
> AC_FUNC_FSEEKO
> if test x"$ac_cv_sys_largefile_source" != xunknown ; then
<snip>
>
> Could someone try that on a BSD system and see if it then works?
No, it doesn't. $ac_cv_sys_largefile_source will be set to "no"
in this case and one still ends up with the wrong fseeko() function.
FreeBSD doesn't need _LARGEFILE_SOURCE to make the prototype visible.
off_t seems to support large files by default.
After configure, the following defines will be set in config.h
#define DO_LARGEFILES 1
#define HAVE_DECL_FSEEKO 1
#define HAVE_DECL_FTELLO 1
#define HAVE_FSEEKO 1
#define HAVE_LARGE_FPOS_T 1
/* #undef _FILE_OFFSET_BITS */
/* #undef _LARGEFILE_SOURCE */
/* #undef _LARGE_FILES */
Ciao,
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20090322/b68763f5/attachment.bin>
More information about the inn-workers
mailing list