From 4b70e3ac0ae450926e4b8a939007ce56f36a9e3d Mon Sep 17 00:00:00 2001 From: didg Date: Sun, 25 Oct 2009 12:09:00 +0000 Subject: [PATCH] sendfile commit didn't compile if sendfile disable --- libatalk/dsi/dsi_stream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libatalk/dsi/dsi_stream.c b/libatalk/dsi/dsi_stream.c index 2bd50bee..6e62556a 100644 --- a/libatalk/dsi/dsi_stream.c +++ b/libatalk/dsi/dsi_stream.c @@ -1,5 +1,5 @@ /* - * $Id: dsi_stream.c,v 1.18 2009-10-25 09:47:05 didg Exp $ + * $Id: dsi_stream.c,v 1.19 2009-10-25 12:09:00 didg Exp $ * * Copyright (c) 1998 Adrian Sun (asun@zoology.washington.edu) * All rights reserved. See COPYRIGHT. @@ -195,6 +195,7 @@ ssize_t dsi_stream_write(DSI *dsi, void *data, const size_t length, int mode) /* --------------------------------- */ +#ifdef WITH_SENDFILE ssize_t dsi_stream_read_file(DSI *dsi, int fromfd, off_t offset, const size_t length) { size_t written; @@ -237,6 +238,7 @@ ssize_t dsi_stream_read_file(DSI *dsi, int fromfd, off_t offset, const size_t le dsi->in_write--; return written; } +#endif /* --------------------------------- */ -- 2.39.2