summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_readahead.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_readahead.c')
-rw-r--r--source3/modules/vfs_readahead.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/modules/vfs_readahead.c b/source3/modules/vfs_readahead.c
index b9dbece94e..22f7f70355 100644
--- a/source3/modules/vfs_readahead.c
+++ b/source3/modules/vfs_readahead.c
@@ -19,6 +19,10 @@
#include "system/filesys.h"
#include "smbd/smbd.h"
+#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
+ssize_t readahead(int fd, off64_t offset, size_t count);
+#endif
+
struct readahead_data {
SMB_OFF_T off_bound;
SMB_OFF_T len;