Date: Wed, 31 Mar 2010 13:24:28 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Xin LI <delphij@gmail.com> Cc: d@delphij.net, gahr@freebsd.org, the_paya@gentoo.org, ports@freebsd.org, freebsd-arch@freebsd.org, Alexander Logvinov <avl@logvinov.com> Subject: Re: [RFC] Reduce namespace pollution on zlib.h Message-ID: <86pr2ksphv.fsf@ds4.des.no> In-Reply-To: <x2ka78074951003310341m6aae93fcw3ba559daad5a753b@mail.gmail.com> (Xin LI's message of "Wed, 31 Mar 2010 03:41:13 -0700") References: <4BACFE18.7010309@delphij.net> <86wrwylji0.fsf@ds4.des.no> <4BAD509B.3080805@delphij.net> <86ljdelhgd.fsf@ds4.des.no> <4BAD62CF.6090901@delphij.net> <868w9elego.fsf@ds4.des.no> <20100331102509.GI34892@gahrfit.gahr.ch> <p2xa78074951003310338td17993a6nce83d72a913d2c23@mail.gmail.com> <x2ka78074951003310341m6aae93fcw3ba559daad5a753b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Xin LI <delphij@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 =3D=3D 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. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pr2ksphv.fsf>