--- avrprog-0.2.2.orig/intelhex.c
+++ avrprog-0.2.2/intelhex.c
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <string.h>
 
 int intelhex_fileopen (inteldata *id, char *filename, int mode) {
     /* mode = 1 -> open file for reading */
