summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/replace.h
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-05-10 01:27:18 +0000
committerDerrell Lipman <derrell@samba.org>2007-05-10 01:27:18 +0000
commit44bec8696c2cfcc666cb5ba4e5d70e4dd9dc5159 (patch)
treefaf9b6d3a43e650922982a8afa7e7cd0b4ced0a1 /source/lib/replace/replace.h
parentc7744fa4d43fb998d0287b78aa1bbc3ede7cd692 (diff)
downloadsamba-44bec8696c2cfcc666cb5ba4e5d70e4dd9dc5159.tar.gz
samba-44bec8696c2cfcc666cb5ba4e5d70e4dd9dc5159.tar.xz
samba-44bec8696c2cfcc666cb5ba4e5d70e4dd9dc5159.zip
r22772: - Still working on the fact that readahead() is not declared (on at least one
OS) but is available for linking. Instead of running configure tests with -Werror-implicit-function-declaration in developer mode (which may lead to different library functions being used in developer mode than when not in developer mode), add tests for whether readahead is declared. If not, provide a replacement declaration in lib/replace.
Diffstat (limited to 'source/lib/replace/replace.h')
-rw-r--r--source/lib/replace/replace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h
index b96356ac467..916d5a55e69 100644
--- a/source/lib/replace/replace.h
+++ b/source/lib/replace/replace.h
@@ -111,6 +111,11 @@ extern char *sys_errlist[];
extern int errno;
#endif
+#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
+ssize_t readahead(int fd, off64_t offset, size_t count);
+#endif
+
+
#ifndef HAVE_STRDUP
#define strdup rep_strdup
char *rep_strdup(const char *s);