X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fdsi%2Fdsi_stream.c;h=ccb8b76eae25d4dc091448ab8dff81e58ee2039a;hb=056d3ef4c88ba09eabb1fcbf06bdd9fe6e7af4cf;hp=ef25275241e170c5563e730eba8260494cfa3d4e;hpb=15c1fc2f2328736dd428ec3be37c893d8ee2e065;p=netatalk.git diff --git a/libatalk/dsi/dsi_stream.c b/libatalk/dsi/dsi_stream.c index ef252752..ccb8b76e 100644 --- a/libatalk/dsi/dsi_stream.c +++ b/libatalk/dsi/dsi_stream.c @@ -341,7 +341,7 @@ ssize_t dsi_stream_read_file(DSI *dsi, int fromfd, off_t offset, const size_t le goto exit; } if (errno == EAGAIN || errno == EWOULDBLOCK) { -#ifdef SOLARIS +#if defined(SOLARIS) || defined(FREEBSD) if (pos > offset) { /* we actually have sent sth., adjust counters and keep trying */ len = pos - offset;