Here is the diff I applied to my copy of the sources which allowed me to
pass the compilation without any problems.
Just for the record I'm testing this on Slackware GNU/Linux:
mulander@bunkier_mysli:~/code/blog/lac/rsync$ uname -a
Linux bunkier_mysli 2.6.32.7-grsec #2 SMP Sat Feb 6 11:22:3
from configure.sh to check the availability of
fallocate:
#include
#include
int
main ()
{
fallocate(0, 0, 0, 0);
;
return 0;
}
This code compiles (with a warning) and runs on my system:
mulander@bunkier_mysli:~/code/blog/lac$ gcc -std=gnu99 -o conftest -g -O2
-DHAVE_CONFIG_H -Wall -W test.c
t