$NetBSD$

--- flash_lock.c	2006-10-07 17:33:37.000000000 +0200
+++ flash_lock.c.new	2007-09-01 09:41:24.000000000 +0200
@@ -11,6 +11,9 @@
 #include <fcntl.h>
 #include <time.h>
 #include <sys/ioctl.h>
+#if __NetBSD__
+#include <sys/param.h>
+#endif
 #include <sys/mount.h>
 #include <string.h>
 
