projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2005-11-07 Miguel de Icaza <miguel@novell.com>
[mono.git]
/
support
/
sys-sendfile.c
diff --git
a/support/sys-sendfile.c
b/support/sys-sendfile.c
index 1e8092de82c4886adce8218a5232fc51d918843a..976b01d7870fae07970d9bfe6b088f4f06e928f7 100644
(file)
--- a/
support/sys-sendfile.c
+++ b/
support/sys-sendfile.c
@@
-7,13
+7,18
@@
* Copyright (C) 2004 Jonathan Pryor
*/
* Copyright (C) 2004 Jonathan Pryor
*/
-#include <sys/
sendfile
.h>
+#include <sys/
types
.h>
#include <errno.h>
#include "mph.h"
#include <errno.h>
#include "mph.h"
+#ifdef HAVE_SYS_SENDFILE_H
+#include <sys/sendfile.h>
+#endif /* ndef HAVE_SYS_SENDFILE_H */
+
G_BEGIN_DECLS
G_BEGIN_DECLS
+#ifdef HAVE_SENDFILE
mph_ssize_t
Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_t count)
{
mph_ssize_t
Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_t count)
{
@@
-29,6
+34,7
@@
Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_
return r;
}
return r;
}
+#endif /* ndef HAVE_SENDFILE */
G_END_DECLS
G_END_DECLS