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 | 79de9c71887aafe46efd005be65e8cc596eff5cb (patch) | |
tree | 5a10f00ea08a59015d354a55f04f310d80df2f37 /include | |
parent | 8bb8385f02d36c6ca31ec2036876d891d56134b5 (diff) | |
download | mariadb-git-79de9c71887aafe46efd005be65e8cc596eff5cb.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.
Diffstat (limited to 'include')
-rw-r--r-- | include/m_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h index 0d248ea0ad3..53572a4ac9e 100644 --- a/include/m_string.h +++ b/include/m_string.h @@ -58,7 +58,7 @@ # define bfill(A,B,C) memset((A),(C),(B)) #endif -#if !defined(bzero) && !defined(HAVE_BZERO) +#if !defined(bzero) && (!defined(HAVE_BZERO) || !defined(HAVE_DECL_BZERO)) # define bzero(A,B) memset((A),0,(B)) #endif |