--- sane-backends-1.0.22.orig/backend/genesys.h	2011-01-16 02:01:28.000000000 +0100
+++ sane-backends-1.0.22/backend/genesys.h	2014-03-18 08:36:42.000000000 +0100
@@ -52,6 +52,7 @@
 */
 #undef UNIT_TESTING
 
+#include <sys/types.h>
 #include "genesys_low.h"
 
 #define FREE_IFNOT_NULL(x)		if(x!=NULL) { free(x); x=NULL;}