svn commit: samba r2070 - in branches/SAMBA_3_0/source: . lib
idra at samba.org
idra at samba.org
Wed Aug 25 14:24:16 GMT 2004
Author: idra
Date: 2004-08-25 14:24:16 +0000 (Wed, 25 Aug 2004)
New Revision: 2070
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source&rev=2070&nolog=1
Log:
Let's try to overload srnlen and strndup for AIX where they are natly broken.
Modified:
branches/SAMBA_3_0/source/configure.in
branches/SAMBA_3_0/source/lib/util_str.c
Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===================================================================
--- branches/SAMBA_3_0/source/configure.in 2004-08-25 14:00:01 UTC (rev 2069)
+++ branches/SAMBA_3_0/source/configure.in 2004-08-25 14:24:16 UTC (rev 2070)
@@ -1206,6 +1206,8 @@
fi
AC_DEFINE(STAT_ST_BLOCKSIZE,DEV_BSIZE,[The size of a block])
+ AC_DEFINE(BROKEN_STRNLEN,1,[Does strnlen work correctly])
+ AC_DEFINE(BROKEN_STRNDUP,1,[Does strndup work correctly])
;;
*hpux*) AC_DEFINE(HPUX,1,[Whether the host os is HPUX])
SHLIBEXT="sl"
Modified: branches/SAMBA_3_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_str.c 2004-08-25 14:00:01 UTC (rev 2069)
+++ branches/SAMBA_3_0/source/lib/util_str.c 2004-08-25 14:24:16 UTC (rev 2070)
@@ -1502,7 +1502,7 @@
}
-#ifndef HAVE_STRNDUP
+#if !defined(HAVE_STRNDUP) || defined(BROKEN_STRNDUP)
/**
Some platforms don't have strndup.
**/
@@ -1522,7 +1522,7 @@
}
#endif
-#ifndef HAVE_STRNLEN
+#if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN)
/**
Some platforms don't have strnlen
**/
More information about the samba-cvs
mailing list