summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-08-25 14:24:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:29 -0500
commit804cfb20a067b4b687089dc72a8271b3abf20f31 (patch)
tree10755346ea4c8cbb7c73de1ed7edf10e27d6c4c9 /source3/lib
parent5b1c7afe9b1467a1345cb0966344ef31c513ba38 (diff)
downloadsamba-804cfb20a067b4b687089dc72a8271b3abf20f31.tar.gz
samba-804cfb20a067b4b687089dc72a8271b3abf20f31.tar.bz2
samba-804cfb20a067b4b687089dc72a8271b3abf20f31.zip
r2070: Let's try to overload srnlen and strndup for AIX where they are natly broken.
(This used to be commit 98feb3318f54bb48ce56fc8f4721fec4967b9dd9)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 1083076edd..3e6de23e55 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1502,7 +1502,7 @@ int fstr_sprintf(fstring s, const char *fmt, ...)
}
-#ifndef HAVE_STRNDUP
+#if !defined(HAVE_STRNDUP) || defined(BROKEN_STRNDUP)
/**
Some platforms don't have strndup.
**/
@@ -1522,7 +1522,7 @@ int fstr_sprintf(fstring s, const char *fmt, ...)
}
#endif
-#ifndef HAVE_STRNLEN
+#if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN)
/**
Some platforms don't have strnlen
**/