summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/libreplace.m4
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/libreplace.m4
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/libreplace.m4')
-rw-r--r--source/lib/replace/libreplace.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4
index e9b19b7cf51..a030ce2e909 100644
--- a/source/lib/replace/libreplace.m4
+++ b/source/lib/replace/libreplace.m4
@@ -155,6 +155,7 @@ AC_CHECK_FUNCS(pread pwrite strndup strcasestr strtok_r mkdtemp socketpair)
AC_HAVE_DECL(setresuid, [#include <unistd.h>])
AC_HAVE_DECL(setresgid, [#include <unistd.h>])
AC_HAVE_DECL(errno, [#include <errno.h>])
+AC_HAVE_DECL(readahead, [#include <fcntl.h>])
AC_CACHE_CHECK([for secure mkstemp],samba_cv_HAVE_SECURE_MKSTEMP,[
AC_TRY_RUN([#include <stdlib.h>