diff --git a/SystemTools.cxx b/SystemTools.cxx
index 4281c3885e4bfe6df87d6badca8080d0473479c0..c97af251443f002132a321e88fabae885801e0e8 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -66,6 +66,10 @@
 #include <sys/stat.h>
 #include <time.h>
 
+#if defined(_WIN32) && !defined(_MSC_VER) && defined(__GNUC__)
+# include <strings.h> /* for strcasecmp */
+#endif
+
 #ifdef _MSC_VER
 # define umask _umask // Note this is still umask on Borland
 #endif