diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2011-05-27 08:09:25 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2011-05-27 08:09:25 -0300 |
commit | 05098831606c3267fc6f80f6af65a8069e82b56a (patch) | |
tree | 5a10f00ea08a59015d354a55f04f310d80df2f37 /configure.in | |
parent | 56a735b78226f6de336c520936df3485d929d685 (diff) | |
download | mariadb-git-05098831606c3267fc6f80f6af65a8069e82b56a.tar.gz |
BUG 11763056 - 55721: AIX 5.1.50 build failing, cannot locate bzero
The problem is that although AIX implements bzero, its prototype
is not declared by default. Since AC_CHECK_FUNC(bzero) succeeds
even though a prototype is not declared, this breaks compilation
in C++ files where a prototype is required.
The solution is to only use bzero if a prototype is also declared.
configure.in:
Check if bzero is declared. No need to specify the includes,
unisted.h and strings.h are already part of AC_INCLUDES_DEFAULT.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 8ba208b1ef5..3603512f3f1 100644 --- a/configure.in +++ b/configure.in @@ -2042,12 +2042,7 @@ MYSQL_TYPE_QSORT AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF -AC_CHECK_DECLS([fdatasync],,, -[ -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif -]) +AC_CHECK_DECLS([fdatasync, bzero]) AC_CHECK_FUNCS(alarm bfill bmove bsearch bzero \ chsize cuserid fchmod fcntl \ |