--- sane-backends-1.0.22.orig/backend/genesys.c	2011-02-14 00:10:18.000000000 +0100
+++ sane-backends-1.0.22/backend/genesys.c	2014-03-18 08:36:00.000000000 +0100
@@ -65,6 +65,7 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <unistd.h>
 #include <math.h>