From 3a34b35dec3b7dc9bc6f87412ed4cbe13a266129 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 30 Mar 2009 08:27:44 -0400 Subject: [PATCH] COMP: missing string.h header for strlen. --- Source/kwsys/testIOS.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx index 8fab5802c..ca3f4c8ec 100644 --- a/Source/kwsys/testIOS.cxx +++ b/Source/kwsys/testIOS.cxx @@ -12,6 +12,8 @@ # include "kwsys_ios_iostream.h.in" #endif +#include /* 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) )