--- sane-backends-1.0.22.orig/backend/kvs20xx_opt.c	2010-12-02 00:49:58.000000000 +0100
+++ sane-backends-1.0.22/backend/kvs20xx_opt.c	2014-03-18 08:41:24.000000000 +0100
@@ -8,6 +8,7 @@
 
 #include "../include/sane/config.h"
 
+#include <sys/types.h>
 #include <string.h>
 
 #define DEBUG_DECLARE_ONLY
