--- video.c.orig	1999-07-23 22:00:51.000000000 -0600
+++ video.c	2004-06-21 20:01:38.000000000 -0600
@@ -49,6 +49,10 @@
 #include "proto.h"
 #include "my_dmalloc.h"
 
+#ifdef _HAVE_PARAM_H
+#include <sys/param.h>
+#endif
+
 /* Declarations of functions. */
 static void ReconIMBlock(VidStream *,int);
 static void ReconPMBlock(VidStream *,int,int,int,int);
@@ -445,7 +449,9 @@ mpegVidRsrc(time_stamp, vid_stream)
   static int num_calls = 0;
   unsigned int data;
   int i, status;
+#if BSD < 199103
   long int ftell (FILE *stream);
+#endif
 
   /* If vid_stream is null, create new VidStream structure. */
 
