diff options
author | jimw@mysql.com <> | 2005-08-31 10:08:55 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-08-31 10:08:55 -0700 |
commit | 37bf8394ab32a2a77a0bbc73c0cc3a54129fe27f (patch) | |
tree | c1f9152e88243517c07aabc96a903ee85dc2a24c /configure.in | |
parent | 6b4baf48a503e86e065c8ced36a0e50103be919b (diff) | |
download | mariadb-git-37bf8394ab32a2a77a0bbc73c0cc3a54129fe27f.tar.gz |
Add test for madvise() being declared in C++ code, because it is not
on Solaris even though it is available, and declare it ourselves in
that case. (Bug #7156)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1d6df1dd55e..f3840e6f1a8 100644 --- a/configure.in +++ b/configure.in @@ -2043,6 +2043,13 @@ AC_CACHE_CHECK([style of gethost* routines], mysql_cv_gethost_style, AC_LANG_SAVE AC_LANG_CPLUSPLUS +# Test whether madvise() is declared in C++ code -- it is not on some +# systems, such as Solaris +AC_CHECK_DECLS(madvise, [], [], [#if HAVE_SYS_MMAN_H +#include <sys/types.h> +#include <sys/mman.h> +#endif]) + # Do not treat warnings as errors if we are linking against other libc # this is to work around gcc not being permissive on non-system includes # with respect to ANSI C++ |