diff options
-rw-r--r-- | source3/include/includes.h | 4 | ||||
-rw-r--r-- | source3/modules/vfs_readahead.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 5d6e554ede..452464b1ce 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -672,10 +672,6 @@ char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATT #define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */ #endif -#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL) -ssize_t readahead(int fd, off64_t offset, size_t count); -#endif - #ifdef TRUE #undef TRUE #endif 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; |