]> git.ipfire.org Git - thirdparty/squid.git/commit
Portability Fix: getrlimit() / setrlimit() incompatible type 'struct rlimit'
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 Apr 2011 11:53:13 +0000 (05:53 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 Apr 2011 11:53:13 +0000 (05:53 -0600)
commitb59662624bb3b5282ae523f851b63ce2cbe25761
treec48d7acaec28b29d6329a552b7a445298f97e4dd
parent4fbe3afbfbf90640387ff780c55b692346a7e39b
Portability Fix: getrlimit() / setrlimit() incompatible type 'struct rlimit'

On Linux (at least) with large file support but not full 64-bit environment.

The getrlimt / setrlimit are #define'd to getrlimite64 / setrlimit64
BUT, the struct rlimit internal fields are updated to 64-bit types individually
instead of a matching #define to struct rlimit64 as a whole.

One can only assume that GCC is casting to void* or some such major voodoo
which hides this type collision.
src/tools.cc