diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-28 06:43:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:25 -0500 |
commit | 2550f5ae126bf33148dabf30ae97b6d6d82e30a0 (patch) | |
tree | 63841d16b51ab73acaa59d9d0c766eedf4e3f3f5 /source4/lib/replace/libreplace_cc.m4 | |
parent | bbe3cffb4b86439cccb39471ca386ee9321239ae (diff) | |
download | samba-2550f5ae126bf33148dabf30ae97b6d6d82e30a0.tar.gz samba-2550f5ae126bf33148dabf30ae97b6d6d82e30a0.tar.bz2 samba-2550f5ae126bf33148dabf30ae97b6d6d82e30a0.zip |
r18970: avoid strndup and strnlen on AIX. They are quite broken. See
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
(This used to be commit c178c84f01166609e6bd3393d39fb0034130167b)
Diffstat (limited to 'source4/lib/replace/libreplace_cc.m4')
-rw-r--r-- | source4/lib/replace/libreplace_cc.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_cc.m4 b/source4/lib/replace/libreplace_cc.m4 index b3b2b0d2bb..73ce01700e 100644 --- a/source4/lib/replace/libreplace_cc.m4 +++ b/source4/lib/replace/libreplace_cc.m4 @@ -66,6 +66,8 @@ case "$host_os" in fi ;; *aix*) + AC_DEFINE(BROKEN_STRNDUP, 1, [Whether strndup is broken]) + AC_DEFINE(BROKEN_STRNLEN, 1, [Whether strnlen is broken]) if test "${GCC}" != "yes"; then ## for funky AIX compiler using strncpy() CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000" |