diff -aprNU5 barcode-0.98.orig/compat/getopt.c barcode-0.98/compat/getopt.c
--- barcode-0.98.orig/compat/getopt.c	1999-11-26 00:10:34 +0000
+++ barcode-0.98/compat/getopt.c	2006-04-23 21:37:42 +0000
@@ -67,10 +67,14 @@
 #if HAVE_STRING_H - 0
 #include <string.h>
 #endif
 #endif
 
+#ifdef __DJGPP__
+#include <string.h>
+#endif
+
 #ifdef WIN32
 /* It's not Unix, really.  See?  Capital letters.  */
 #include <windows.h>
 #define getpid() GetCurrentProcessId()
 #endif
diff -aprNU5 barcode-0.98.orig/sample.c barcode-0.98/sample.c
--- barcode-0.98.orig/sample.c	2001-10-16 14:56:48 +0000
+++ barcode-0.98/sample.c	2006-04-23 21:39:08 +0000
@@ -1,7 +1,8 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "barcode.h"
 
 int main(int argc, char **argv)
 {
