--- a/includes.h
+++ b/includes.h
@@ -60,6 +60,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
