Re: Compilation problem with linux/falloc.h include in rsync.h

2011-05-16 Thread Wayne Davison
On Sun, May 15, 2011 at 9:36 AM, Mulander wrote: >  #if defined HAVE_FALLOCATE || HAVE_SYS_FALLOCATE > -#include > +#include >  #ifdef FALLOC_FL_KEEP_SIZE Rsync already includes fcntl.h higher up in rsync.h. The problematical include is to try to get FALLOC_FL_KEEP_SIZE defined. I have added

Re: Compilation problem with linux/falloc.h include in rsync.h

2011-05-15 Thread Mulander
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:33 CET

Compilation problem with linux/falloc.h include in rsync.h

2011-05-15 Thread Mulander
Hi all, I'm trying to compile rsync from the git sources (rev 8bcd6a4afff3cb8197d5589ec4fdf9fe153f53de) the configuration step went without any reported problems so I ran the make utility to compile the code base. The following error was almost immediately returned after running make: ./rsync.h:6