I’m trying to compile some C code on Cygwin which needs the sendfile.h. When I try to compile, it gives me
fatal error: sys/sendfile.h: No such file or directory
compilation terminated.
How do I solve this? Will I have to move to a linux platform? I have gcc4.5 installed on Cygwin.
Like the comment mentioned,
sendfileis not POSIX, however, from the man page ofsendfile(2)
Which means it’s basically a
read()followed by awrite(), so it would be relatively easy to implement it yourself.