diff --git a/kwsysPlatformCxxTests.cxx b/kwsysPlatformCxxTests.cxx
index f3814c0b37c1e5f454c252d829d4ec995118763c..5c1288ed429a090dde30fb6a7aa733807ea30500 100644
--- a/kwsysPlatformCxxTests.cxx
+++ b/kwsysPlatformCxxTests.cxx
@@ -117,7 +117,7 @@ void f(const T&, const Alloc&)
 };
 int main()
 {
-  f(0, std::allocator<char>());
+  f(0, kwsys_stl::allocator<char>());
   return 0;
 }
 #endif