Two Problems Cross-compiling

Wayne Davison wayned at
Thu Sep 23 16:05:33 GMT 2004

On Tue, Sep 21, 2004 at 02:14:44PM -0700, Richard Kiss wrote:
> I replace "unsigned off_t" with __uint64_t and all is well.

Trying to find a 64-bit variable-type is a pain in the neck.  I'm not
sure what can be done for cross-compiling.  Suggestions welcomed.

> lib/compat.c:202: error: too few arguments to function `gettimeofday'

When cross-compiling, all the test-by-compiling configure items get
their default value, and the default for the gettimeofday() function was
to assume that the function took only one argument (i.e. had no
timezone).  I changed configure to assume that the function has two args
when cross-compiling (which is the more likely case these days).

Thanks for the report,


More information about the rsync mailing list