--- a/includes.h
+++ b/includes.h
@@ -57,6 +57,9 @@
 /*
  *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
  */
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif