X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fsys-sendfile.c;h=794341b58999b7bb363e97daa99633d53675b661;hb=ef7a4c06206976de7ef2e974267407347ddb75a4;hp=0750efbbdfc3c65d7751ab8c9b1abfdf43005caf;hpb=b2262f41726a89c8209facb3ea9e4be9582422b5;p=mono.git diff --git a/support/sys-sendfile.c b/support/sys-sendfile.c index 0750efbbdfc..794341b5899 100644 --- a/support/sys-sendfile.c +++ b/support/sys-sendfile.c @@ -7,9 +7,12 @@ * Copyright (C) 2004 Jonathan Pryor */ +#include + #include #include +#include "mono/utils/mono-compiler.h" #include "map.h" #include "mph.h" @@ -29,7 +32,12 @@ Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_ _offset = *offset; +#if defined(HOST_DARWIN) || defined(HOST_BSD) + /* The BSD version has 6 arguments */ + g_assert_not_reached (); +#else r = sendfile (out_fd, in_fd, &_offset, (size_t) count); +#endif *offset = _offset;