diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 09:49:48 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:08 +0200 |
commit | 473b974a06b209a2c2560d6611ea40498a2c97d5 (patch) | |
tree | 1596d1cc3dbd76fa4e967d8006ec7ef4409ad4f1 /source3/lib/sendfile.c | |
parent | b4e58111b9ee66ed279eaf88ee8ec523a17220f1 (diff) | |
download | samba-473b974a06b209a2c2560d6611ea40498a2c97d5.tar.gz samba-473b974a06b209a2c2560d6611ea40498a2c97d5.tar.xz samba-473b974a06b209a2c2560d6611ea40498a2c97d5.zip |
build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more
Diffstat (limited to 'source3/lib/sendfile.c')
-rw-r--r-- | source3/lib/sendfile.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c index c2099bc8b1b..50b522ed195 100644 --- a/source3/lib/sendfile.c +++ b/source3/lib/sendfile.c @@ -58,11 +58,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of while (total) { ssize_t nwritten; do { -#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(HAVE_SENDFILE64) - nwritten = sendfile64(tofd, fromfd, &offset, total); -#else nwritten = sendfile(tofd, fromfd, &offset, total); -#endif #if defined(EWOULDBLOCK) } while (nwritten == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK)); #else @@ -229,11 +225,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of xferred = 0; -#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(HAVE_SENDFILEV64) - nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred); -#else nwritten = sendfilev(tofd, vec, sfvcnt, &xferred); -#endif #if defined(EWOULDBLOCK) if (nwritten == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK)) { #else @@ -307,11 +299,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of */ do { -#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(HAVE_SENDFILE64) - nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0); -#else nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0); -#endif #if defined(EWOULDBLOCK) } while (nwritten == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK)); #else |