]> git.sesse.net Git - betaftpd/blobdiff - ftpd.h
Added FreeBSD support for sendfile() (thanks to <liangyi@netchina.com.cn>), and updat...
[betaftpd] / ftpd.h
diff --git a/ftpd.h b/ftpd.h
index e85ced495f36a993ef62de7903cacae9159d16b1..7a165dce05e7c5cb3182af297d406e323264c47f 100644 (file)
--- a/ftpd.h
+++ b/ftpd.h
@@ -213,6 +213,10 @@ int create_server_socket();
 void clear_bad_fds(int * const server_sock);
 #endif
 
+#if HAVE_BSD_SENDFILE || HAVE_LINUX_SENDFILE
+int mysendfile(int sock, int fd, off_t *offset, size_t count);
+#endif 
+
 #if WANT_MESSAGE
 void dump_file(struct conn * const c, const int num, const char * const filename);
 void list_readmes(struct conn * const c);