svn commit: samba r2072 - in trunk/source: . lib

idra at samba.org idra at samba.org
Wed Aug 25 16:15:36 GMT 2004


Author: idra
Date: 2004-08-25 16:15:35 +0000 (Wed, 25 Aug 2004)
New Revision: 2072

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source&rev=2072&nolog=1

Log:
fix some broken functions on AIX
Modified:
   trunk/source/configure.in
   trunk/source/lib/util_str.c


Changeset:
Modified: trunk/source/configure.in
===================================================================
--- trunk/source/configure.in	2004-08-25 14:31:59 UTC (rev 2071)
+++ trunk/source/configure.in	2004-08-25 16:15:35 UTC (rev 2072)
@@ -1208,6 +1208,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: trunk/source/lib/util_str.c
===================================================================
--- trunk/source/lib/util_str.c	2004-08-25 14:31:59 UTC (rev 2071)
+++ trunk/source/lib/util_str.c	2004-08-25 16:15:35 UTC (rev 2072)
@@ -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