Displaying 1 result from an estimated 1 matches for "bunkier_mysli".
2011 May 15
2
Compilation problem with linux/falloc.h include in rsync.h
...the final compilation failed.
Here is the code extracted from configure.sh to check the availability of
fallocate:
#include <fcntl.h>
#include <sys/types.h>
int
main ()
{
fallocate(0, 0, 0, 0);
;
return 0;
}
This code compiles (with a warning) and runs on my system:
mulander at bunkier_mysli:~/code/blog/lac$ gcc -std=gnu99 -o conftest -g -O2
-DHAVE_CONFIG_H -Wall -W test.c
test.c: In function 'main':
test.c:6:3: warning: implicit declaration of function 'fallocate'
mulander at bunkier_mysli:~/code/blog/lac$ ./conftest
mulander at bunkier_mysli:~/code/blog/lac$ echo $?...