Large file support on 32-bit systems

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Jul 2 14:23:32 CEST 2015


On Thu, Jul 02, 2015 at 03:01:20PM +0300, Uri Simchoni wrote:
> Hi,
> 
> I detected the following large-file support bug in lib/util/util.c:
> - I have a 32-bit system
> - The configuration process added _FILE_OFFSET_BITS=64 into config.h
> (that is, it detected that the system does not support large files
> without adding something, and found the correct thing to add - so far
> so good).
> - However, in lib/util/util.c, <talloc.h> is included before
> "replace.h", and this causes off_t to be 32 bits (because what matters
> is whether _FILE_OFFSET_BITS set to 64 on the FIRST time glibc's
> features.h is included)

Don't we have the convention to always #include "replace.h"
first before anything else? Does swapping both help?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list