--- ./minolta/dimage_v.h.orig	Wed Nov 10 18:40:10 1999
+++ ./minolta/dimage_v.h	Wed Nov 10 18:47:21 1999
@@ -1,11 +1,15 @@
 #ifndef __MINOLTA_H__
 
+#include "config.h"
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <termios.h>
 #include <sys/stat.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #include <errno.h>
 #include <unistd.h>
 #include "../src/gphoto.h"
