From 8cf348e9619c8bb153d426550c513733cbb721c7 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 30 Jan 2004 12:37:39 +0000 Subject: [PATCH] detect sendfile on Linux with glibc --- trysendfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trysendfile.c b/trysendfile.c index 6b7e544..7e26726 100644 --- a/trysendfile.c +++ b/trysendfile.c @@ -59,6 +59,8 @@ int main() { #elif defined(__linux__) #define _FILE_OFFSET_BITS 64 +#include +#include #if defined(__GLIBC__) #include #elif defined(__dietlibc__) @@ -67,6 +69,7 @@ int main() { #include _syscall4(int,sendfile,int,out,int,in,long *,offset,unsigned long,count) #endif +#include int main() { int fd=open("havesendfile.c",0);