$NetBSD$

--- decode.c.orig	1990-08-05 11:04:08.000000000 +0000
+++ decode.c
@@ -16,6 +16,9 @@
 #include <time.h>
 #define index   strchr
 #else
+#ifdef __linux__
+#include <time.h>
+#endif
 #ifdef __TURBOC__
 #include <time.h>
 #include <io.h>
@@ -38,7 +41,6 @@ int  type,dline;
 unsigned char decbuf[LBUFLEN][LBUFLEN];
 
 extern unsigned char *index();
-extern int errno;
 
 decode()
 {
