[PATCH] fix off_t/rlim_t size checks when cross-compiling

Dmitry V. Levin ldv at altlinux.org
Mon Sep 13 20:14:17 UTC 2010

On Sun, Sep 12, 2010 at 04:01:47AM -0400, Mike Frysinger wrote:
> The current off_t/rlim_t size checks (wrt size of long long) use AC_RUN
> which obviously doesn't work when cross-compiling.  While we don't hit any
> configure errors, the fall back code is pretty dumb (which is to say there
> isn't any).  Considering the code in question though, we can use some fun
> compiler tricks with sizeof and array lengths to turn it into a pure build
> test and avoid the RUN issue completely.

All these four changes look OK for me.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100914/da896379/attachment.bin>

More information about the Strace-devel mailing list