diff -aprNU5 gperf-3.0.2.orig/lib/getopt.c gperf-3.0.2/lib/getopt.c
--- gperf-3.0.2.orig/lib/getopt.c	2005-05-14 14:22:36 +0000
+++ gperf-3.0.2/lib/getopt.c	2007-02-18 17:24:00 +0000
@@ -29,10 +29,14 @@
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
+#ifdef __DJGPP__
+#include <string.h>
+#endif
+
 #if !defined __STDC__ || !__STDC__
 /* This is a separate conditional since some stdc systems
    reject `defined (const)'.  */
 #ifndef const
 #define const
diff -aprNU5 gperf-3.0.2.orig/src/version.cc gperf-3.0.2/src/version.cc
--- gperf-3.0.2.orig/src/version.cc	2005-07-30 16:42:12 +0000
+++ gperf-3.0.2/src/version.cc	2007-02-18 17:24:00 +0000
@@ -23,6 +23,6 @@
 
 /* Specification. */
 #include "version.h"
 
 /* Current release version. */
-const char *version_string = "3.0.2";
+const char *version_string = "3.0.2  (DJGPP port (r1))";
