Skip to content

Commit 6e7a519

Browse files
author
Joerg Bruehe
committed
Upmerge the AIX compile fix into 5.5.
2 parents 8e5d999 + 03cdce7 commit 6e7a519

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

include/m_string.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
# define bfill(A,B,C) memset((A),(C),(B))
6161
#endif
6262

63-
#if !defined(bzero) && !defined(HAVE_BZERO)
63+
#if !defined(bzero) && (!defined(HAVE_BZERO) || !HAVE_DECL_BZERO || defined(_AIX))
64+
/* See autoconf doku: "HAVE_DECL_symbol" will be defined after configure, to 0 or 1 */
65+
/* AIX has bzero() as a function, but the declaration prototype is strangely hidden */
6466
# define bzero(A,B) memset((A),0,(B))
6567
#endif
6668

0 commit comments

Comments
 (0)