From: didg Date: Sun, 25 Oct 2009 12:09:00 +0000 (+0000) Subject: sendfile commit didn't compile if sendfile disable X-Git-Tag: before-ipv6~34 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=4b70e3ac0ae450926e4b8a939007ce56f36a9e3d sendfile commit didn't compile if sendfile disable --- 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 /* --------------------------------- */