summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testIOS.cxx
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2009-03-30 12:27:44 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2009-03-30 12:27:44 (GMT)
commit3a34b35dec3b7dc9bc6f87412ed4cbe13a266129 (patch)
treef23ec5f2a6cd2044288986b1dd4690239445053e /Source/kwsys/testIOS.cxx
parent31d03e839902417d059a510df52f26d46950bba4 (diff)
downloadCMake-3a34b35dec3b7dc9bc6f87412ed4cbe13a266129.zip
CMake-3a34b35dec3b7dc9bc6f87412ed4cbe13a266129.tar.gz
CMake-3a34b35dec3b7dc9bc6f87412ed4cbe13a266129.tar.bz2
COMP: missing string.h header for strlen.
Diffstat (limited to 'Source/kwsys/testIOS.cxx')
-rw-r--r--Source/kwsys/testIOS.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx
index 8fab580..ca3f4c8 100644
--- a/Source/kwsys/testIOS.cxx
+++ b/Source/kwsys/testIOS.cxx
@@ -12,6 +12,8 @@
# include "kwsys_ios_iostream.h.in"
#endif
+#include <string.h> /* strlen */
+
int testIOS(int, char*[])
{
kwsys_ios::ostringstream ostr;
@@ -24,7 +26,7 @@ int testIOS(int, char*[])
}
const char world[] = "world";
kwsys_ios::ostringstream ostr2;
- ostr2.write( hello, strlen(hello) );
+ ostr2.write( hello, strlen(hello) ); /* I could do sizeof */
ostr2.put( '\0' );
ostr2.write( world, strlen(world) );
if(ostr2.str().size() != strlen(hello) + 1 + strlen(world) )