Large file support and stat vs stat64 in extension modules

Martin v. Loewis martin at v.loewis.de
Tue Sep 17 08:05:35 CEST 2002


Ben Escoto <ben at remove.Stanford.EDU> writes:

> define_macros=[("_LARGEFILE_SOURCE", 1), ("_FILE_OFFSET_BITS", 64)]
> 
> when declaring the ext_modules does something similar and seems to work.
> 
>     Again, this is a bit ad hoc, but seems to work, and I don't know of a
> better way.

If Python was configured for LFS, then those defines appear in
pyconfig.h. So including Python.h before any system headers is the
recommend, and better, way.

Regards,
Martin




More information about the Python-list mailing list