summaryrefslogtreecommitdiff
path: root/source4/lib/replace/libreplace_cc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/libreplace_cc.m4')
-rw-r--r--source4/lib/replace/libreplace_cc.m42
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"