hi there,
I just experienced the compiling on a linux v2.0 kernel based system of
clamav - everything worked fine - except the "sendfile" function is not
available and therefore the clamscan/others.c needed some modifications,
I'd like to contribute a diff, but I'm unable as I don't know how to
distinguish betweed C_LINUX with versions C_LINUX22 ?
anyway, regarding the current download v0.60 of clamav I would suggest to
get the linux-version into the configure-script and then I'd make those
#ifdef C_LINUX lines to #ifdef C_LINUX22 or similar.
as a workaround I simply moved the following lines in clamscan/others.c to
comments:
line 43 -> // #include <sys/senfile.h>
line 422 to 426, 429 ->
// #ifdef C_LINUX
// struct stat statb;
// int s, d;
// off_t offset;
// #else
char buffer[BUFFSIZE]; // this is valid
int s, d, bytes; // this is valid too
// #endif
line 439 to 457, 460 -> here the whole sendfile (#ifdef C_LINUX) is
commented, because the slower (but working) while (read) {write} loop
stays.
if anyone can assist in adding linux versioning into the configure script
and change those #ifdef's accordingly I'd appreciate.
best,
harald kapper / kapper.net
----------------------------quote.of.the.year--------------------------
IDIOCY - never underestimate the power of stupid people in large groups
----------------------------------------------
Harald Kapper [EMAIL PROTECTED]
chief-executive of kapper.net, Vienna, Austria
tel +43 1 3195500-0 fax +43 1 3195502
http://kapper.net/ is [your favorite internet]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel