Xin LI <[email protected]> writes:
> The problem is that some third party software thinks that they need to
> define _LARGEFILE64_*, which will break zlib.h on FreeBSD :(

Then that third-party software is broken and needs to be fixed.

_LARGEFILE64_SOURCE is (supposed to be) used to expose the stat64() API.
FreeBSD does not have stat64().  Any application that defines it and
then calls stat() instead of stat64() is broken to begin with.  Any
application that defines it and then calls stat64() will not compile on
FreeBSD.

See sections 3.3.2 and 3.1 of this document:

http://www.unix.org/version2/whatsnew/lfs20mar.html

On Linux, it's a no-op, because while the kernel has separate 32-bit
stat() and 64-bit stat64() syscalls, glibc aliases stat() to stat64().

DES
-- 
Dag-Erling Smørgrav - [email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to