diff -aprNU5 gperf-3.0.4.orig/lib/getopt.c gperf-3.0.4/lib/getopt.c
--- gperf-3.0.4.orig/lib/getopt.c	2008-08-23 18:52:48 +0000
+++ gperf-3.0.4/lib/getopt.c	2009-02-09 23:46:44 +0000
@@ -27,10 +27,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.4.orig/src/version.cc gperf-3.0.4/src/version.cc
--- gperf-3.0.4.orig/src/version.cc	2009-02-01 12:08:20 +0000
+++ gperf-3.0.4/src/version.cc	2009-02-09 23:46:44 +0000
@@ -21,6 +21,6 @@
 
 /* Specification. */
 #include "version.h"
 
 /* Current release version. */
-const char *version_string = "3.0.4";
+const char *version_string = "3.0.4  (DJGPP port (r1)";
