[RFC] Reduce namespace pollution on zlib.h
des at des.no
Thu Apr 1 21:22:46 UTC 2010
Xin LI <delphij at gmail.com> writes:
> I will merge an upstream change from zlib, which basically unexpose
> LFS stuff on FreeBSD, and I plan to keep the off_t bits == 64.
> However, I would highly recommend ports maintainers to push upstream
> fix for LFS64 definition removal since they are wrong on FreeBSD
LFS64 is not correct on Linux either; just #define _FILE_OFFSET_BITS 64
before #include <sys/stat.h> and use struct stat / stat() as usual. The
AC_SYS_LARGEFILE autoconf macro takes care of that for you, provided you
remember to #include "config.h" in your code.
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-arch