aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common/erl_efile.h
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang-solutions.com>2011-11-16 16:02:57 +0100
committerLukas Larsson <lukas@erlang-solutions.com>2011-12-01 14:10:04 +0100
commita0d3a833cbd70971aa0c79da9853502e6631524d (patch)
treecf68ee8ba0621bfbc496bb95839a3a88f719f6e2 /erts/emulator/drivers/common/erl_efile.h
parenta508d712553761d3cdc69d5e14c09ba3a6530d7a (diff)
downloadotp-a0d3a833cbd70971aa0c79da9853502e6631524d.tar.gz
otp-a0d3a833cbd70971aa0c79da9853502e6631524d.tar.bz2
otp-a0d3a833cbd70971aa0c79da9853502e6631524d.zip
Add ifdef's for HAVE_SENDFILE
Diffstat (limited to 'erts/emulator/drivers/common/erl_efile.h')
-rw-r--r--erts/emulator/drivers/common/erl_efile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/drivers/common/erl_efile.h b/erts/emulator/drivers/common/erl_efile.h
index 8e79b3923a..fd6dc94755 100644
--- a/erts/emulator/drivers/common/erl_efile.h
+++ b/erts/emulator/drivers/common/erl_efile.h
@@ -162,5 +162,7 @@ int efile_symlink(Efile_error* errInfo, char* old, char* new);
int efile_may_openfile(Efile_error* errInfo, char *name);
int efile_fadvise(Efile_error* errInfo, int fd, Sint64 offset, Sint64 length,
int advise);
+#ifdef HAVE_SENDFILE
int efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd,
off_t *offset, Uint64 *nbytes);
+#endif /* HAVE_SENDFILE */